PHP 38
Php class bug? By Guest on 7th February 2017 05:42:55 AM
  1. <?php
  2.     function br($text ='') { echo "{$text}\r\n<br />" ; }
  3.  
  4.     class add {
  5.                 public static $count = 0;
  6.                
  7.                 public static function plus($num = 1) {
  8.                         self::$count = self::$count + $num;
  9.                    return self::$count;
  10.                 }
  11.         }
  12.  
  13.  
  14.      while(add::plus(.10) < 101) {
  15.                     echo add::$count; br();
  16.                  }
  17.                  
  18. br() ; br("Done") ;
  19.  
  20. ?>               
  21.  
  22.  
  23. ------------------------------------------------------------------------
  24. RESULTS
  25. ------------------------------------------------------------------------
  26.  
  27. 0.1
  28. 0.2
  29. 0.3
  30. 0.4
  31. 0.5
  32. 0.6
  33. 0.7
  34. 0.8
  35. 0.9
  36. 1
  37. 1.1
  38. 1.2
  39. 1.3
  40. 1.4
  41. 1.5
  42. 1.6
  43. 1.7
  44. 1.8
  45. 1.9
  46. 2
  47. 2.1
  48. 2.2
  49. 2.3
  50. 2.4
  51. 2.5
  52. 2.6
  53. 2.7
  54. 2.8
  55. 2.9
  56. 3
  57. 3.1
  58. 3.2
  59. 3.3
  60. 3.4
  61. 3.5
  62. 3.6
  63. 3.7
  64. 3.8
  65. 3.9
  66. 4
  67. 4.1
  68. 4.2
  69. 4.3
  70. 4.4
  71. 4.5
  72. 4.6
  73. 4.7
  74. 4.8
  75. 4.9
  76. 5
  77. 5.1
  78. 5.2
  79. 5.3
  80. 5.4
  81. 5.5
  82. 5.6
  83. 5.7
  84. 5.8
  85. 5.9
  86. 6
  87. 6.1
  88. 6.2
  89. 6.3
  90. 6.4
  91. 6.5
  92. 6.6
  93. 6.7
  94. 6.8
  95. 6.9
  96. 7
  97. 7.1
  98. 7.2
  99. 7.3
  100. 7.4
  101. 7.5
  102. 7.6
  103. 7.7
  104. 7.8
  105. 7.9
  106. 8
  107. 8.1
  108. 8.2
  109. 8.3
  110. 8.4
  111. 8.5
  112. 8.6
  113. 8.7
  114. 8.8
  115. 8.9
  116. 9
  117. 9.1
  118. 9.2
  119. 9.3
  120. 9.4
  121. 9.5
  122. 9.6
  123. 9.7
  124. 9.8
  125. 9.9
  126. 10
  127. 10.1
  128. 10.2
  129. 10.3
  130. 10.4
  131. 10.5
  132. 10.6
  133. 10.7
  134. 10.8
  135. 10.9
  136. 11
  137. 11.1
  138. 11.2
  139. 11.3
  140. 11.4
  141. 11.5
  142. 11.6
  143. 11.7
  144. 11.8
  145. 11.9
  146. 12
  147. 12.1
  148. 12.2
  149. 12.3
  150. 12.4
  151. 12.5
  152. 12.6
  153. 12.7
  154. 12.8
  155. 12.9
  156. 13
  157. 13.1
  158. 13.2
  159. 13.3
  160. 13.4
  161. 13.5
  162. 13.6
  163. 13.7
  164. 13.8
  165. 13.9
  166. 14
  167. 14.1
  168. 14.2
  169. 14.3
  170. 14.4
  171. 14.5
  172. 14.6
  173. 14.7
  174. 14.8
  175. 14.9
  176. 15
  177. 15.1
  178. 15.2
  179. 15.3
  180. 15.4
  181. 15.5
  182. 15.6
  183. 15.7
  184. 15.8
  185. 15.9
  186. 16
  187. 16.1
  188. 16.2
  189. 16.3
  190. 16.4
  191. 16.5
  192. 16.6
  193. 16.7
  194. 16.8
  195. 16.9
  196. 17
  197. 17.1
  198. 17.2
  199. 17.3
  200. 17.4
  201. 17.5
  202. 17.6
  203. 17.7
  204. 17.8
  205. 17.9
  206. 18
  207. 18.1
  208. 18.2
  209. 18.3
  210. 18.4
  211. 18.5
  212. 18.6
  213. 18.7
  214. 18.8
  215. 18.9
  216. 19
  217. 19.1
  218. 19.2
  219. 19.3
  220. 19.4
  221. 19.5
  222. 19.6
  223. 19.7
  224. 19.8
  225. 19.9
  226. 20
  227. 20.1
  228. 20.2
  229. 20.3
  230. 20.4
  231. 20.5
  232. 20.6
  233. 20.7
  234. 20.8
  235. 20.9
  236. 21
  237. 21.1
  238. 21.2
  239. 21.3
  240. 21.4
  241. 21.5
  242. 21.6
  243. 21.7
  244. 21.8
  245. 21.9
  246. 22
  247. 22.1
  248. 22.2
  249. 22.3
  250. 22.4
  251. 22.5
  252. 22.6
  253. 22.7
  254. 22.8
  255. 22.9
  256. 23
  257. 23.1
  258. 23.2
  259. 23.3
  260. 23.4
  261. 23.5
  262. 23.6
  263. 23.7
  264. 23.8
  265. 23.9
  266. 24
  267. 24.1
  268. 24.2
  269. 24.3
  270. 24.4
  271. 24.5
  272. 24.6
  273. 24.7
  274. 24.8
  275. 24.9
  276. 25
  277. 25.1
  278. 25.2
  279. 25.3
  280. 25.4
  281. 25.5
  282. 25.6
  283. 25.7
  284. 25.8
  285. 25.9
  286. 26
  287. 26.1
  288. 26.2
  289. 26.3
  290. 26.4
  291. 26.5
  292. 26.6
  293. 26.7
  294. 26.8
  295. 26.9
  296. 27
  297. 27.1
  298. 27.2
  299. 27.3
  300. 27.4
  301. 27.5
  302. 27.6
  303. 27.7
  304. 27.8
  305. 27.9
  306. 28
  307. 28.1
  308. 28.2
  309. 28.3
  310. 28.4
  311. 28.5
  312. 28.6
  313. 28.7
  314. 28.8
  315. 28.9
  316. 29
  317. 29.1
  318. 29.2
  319. 29.3
  320. 29.4
  321. 29.5
  322. 29.6
  323. 29.7
  324. 29.8
  325. 29.9
  326. 30
  327. 30.1
  328. 30.2
  329. 30.3
  330. 30.4
  331. 30.5
  332. 30.6
  333. 30.7
  334. 30.8
  335. 30.9
  336. 31
  337. 31.1
  338. 31.2
  339. 31.3
  340. 31.4
  341. 31.5
  342. 31.6
  343. 31.7
  344. 31.8
  345. 31.9
  346. 32
  347. 32.1
  348. 32.2
  349. 32.3
  350. 32.4
  351. 32.5
  352. 32.6
  353. 32.7
  354. 32.8
  355. 32.9
  356. 33
  357. 33.1
  358. 33.2
  359. 33.3
  360. 33.4
  361. 33.5
  362. 33.6
  363. 33.7
  364. 33.8
  365. 33.9
  366. 34
  367. 34.1
  368. 34.2
  369. 34.3
  370. 34.4
  371. 34.5
  372. 34.6
  373. 34.7
  374. 34.8
  375. 34.9
  376. 35
  377. 35.1
  378. 35.2
  379. 35.3
  380. 35.4
  381. 35.5
  382. 35.6
  383. 35.7
  384. 35.8
  385. 35.9
  386. 36
  387. 36.1
  388. 36.2
  389. 36.3
  390. 36.4
  391. 36.5
  392. 36.6
  393. 36.7
  394. 36.8
  395. 36.9
  396. 37
  397. 37.1
  398. 37.2
  399. 37.3
  400. 37.4
  401. 37.5
  402. 37.6
  403. 37.7
  404. 37.8
  405. 37.9
  406. 38
  407. 38.1
  408. 38.2
  409. 38.3
  410. 38.4
  411. 38.5
  412. 38.6
  413. 38.7
  414. 38.8
  415. 38.9
  416. 39
  417. 39.1
  418. 39.2
  419. 39.3
  420. 39.4
  421. 39.5
  422. 39.6
  423. 39.7
  424. 39.8
  425. 39.9
  426. 40
  427. 40.1
  428. 40.2
  429. 40.3
  430. 40.4
  431. 40.5
  432. 40.6
  433. 40.7
  434. 40.8
  435. 40.9
  436. 41
  437. 41.1
  438. 41.2
  439. 41.3
  440. 41.4
  441. 41.5
  442. 41.6
  443. 41.7
  444. 41.8
  445. 41.9
  446. 42
  447. 42.1
  448. 42.2
  449. 42.3
  450. 42.4
  451. 42.5
  452. 42.6
  453. 42.7
  454. 42.8
  455. 42.9
  456. 43
  457. 43.1
  458. 43.2
  459. 43.3
  460. 43.4
  461. 43.5
  462. 43.6
  463. 43.7
  464. 43.8
  465. 43.9
  466. 44
  467. 44.1
  468. 44.2
  469. 44.3
  470. 44.4
  471. 44.5
  472. 44.6
  473. 44.7
  474. 44.8
  475. 44.9
  476. 45
  477. 45.1
  478. 45.2
  479. 45.3
  480. 45.4
  481. 45.5
  482. 45.6
  483. 45.7
  484. 45.8
  485. 45.9
  486. 46
  487. 46.1
  488. 46.2
  489. 46.3
  490. 46.4
  491. 46.5
  492. 46.6
  493. 46.7
  494. 46.8
  495. 46.9
  496. 47
  497. 47.1
  498. 47.2
  499. 47.3
  500. 47.4
  501. 47.5
  502. 47.6
  503. 47.7
  504. 47.8
  505. 47.9
  506. 48
  507. 48.1
  508. 48.2
  509. 48.3
  510. 48.4
  511. 48.5
  512. 48.6
  513. 48.7
  514. 48.8
  515. 48.9
  516. 49
  517. 49.1
  518. 49.2
  519. 49.3
  520. 49.4
  521. 49.5
  522. 49.6
  523. 49.7
  524. 49.8
  525. 49.9
  526. 50
  527. 50.1
  528. 50.2
  529. 50.3
  530. 50.4
  531. 50.5
  532. 50.6
  533. 50.7
  534. 50.8
  535. 50.9
  536. 51
  537. 51.1
  538. 51.2
  539. 51.3
  540. 51.4
  541. 51.5
  542. 51.6
  543. 51.7
  544. 51.8
  545. 51.9
  546. 52
  547. 52.1
  548. 52.2
  549. 52.3
  550. 52.4
  551. 52.5
  552. 52.6
  553. 52.7
  554. 52.8
  555. 52.9
  556. 53
  557. 53.1
  558. 53.2
  559. 53.3
  560. 53.4
  561. 53.5
  562. 53.6
  563. 53.7
  564. 53.8
  565. 53.9
  566. 54
  567. 54.1
  568. 54.200000000001
  569. 54.300000000001
  570. 54.400000000001
  571. 54.500000000001
  572. 54.600000000001
  573. 54.700000000001
  574. 54.800000000001
  575. 54.900000000001
  576. 55.000000000001
  577. 55.100000000001
  578. 55.200000000001
  579. 55.300000000001
  580. 55.400000000001
  581. 55.500000000001
  582. 55.600000000001
  583. 55.700000000001
  584. 55.800000000001
  585. 55.900000000001
  586. 56.000000000001
  587. 56.100000000001
  588. 56.200000000001
  589. 56.300000000001
  590. 56.400000000001
  591. 56.500000000001
  592. 56.600000000001
  593. 56.700000000001
  594. 56.800000000001
  595. 56.900000000001
  596. 57.000000000001
  597. 57.100000000001
  598. 57.200000000001
  599. 57.300000000001
  600. 57.400000000001
  601. 57.500000000001
  602. 57.600000000001
  603. 57.700000000001
  604. 57.800000000001
  605. 57.900000000001
  606. 58.000000000001
  607. 58.100000000001
  608. 58.200000000001
  609. 58.300000000001
  610. 58.400000000001
  611. 58.500000000001
  612. 58.600000000001
  613. 58.700000000001
  614. 58.800000000001
  615. 58.900000000001
  616. 59.000000000001
  617. 59.100000000001
  618. 59.200000000001
  619. 59.300000000001
  620. 59.400000000001
  621. 59.500000000001
  622. 59.600000000001
  623. 59.700000000001
  624. 59.800000000001
  625. 59.900000000001
  626. 60.000000000001
  627. 60.100000000001
  628. 60.200000000001
  629. 60.300000000001
  630. 60.400000000001
  631. 60.500000000001
  632. 60.600000000001
  633. 60.700000000001
  634. 60.800000000001
  635. 60.900000000001
  636. 61.000000000001
  637. 61.100000000001
  638. 61.200000000001
  639. 61.300000000001
  640. 61.400000000001
  641. 61.500000000001
  642. 61.600000000001
  643. 61.700000000001
  644. 61.800000000001
  645. 61.900000000001
  646. 62.000000000001
  647. 62.100000000001
  648. 62.200000000001
  649. 62.300000000001
  650. 62.400000000001
  651. 62.500000000001
  652. 62.600000000001
  653. 62.700000000001
  654. 62.800000000001
  655. 62.900000000001
  656. 63.000000000001
  657. 63.100000000001
  658. 63.200000000001
  659. 63.300000000001
  660. 63.400000000001
  661. 63.500000000001
  662. 63.600000000001
  663. 63.700000000001
  664. 63.800000000001
  665. 63.900000000001
  666. 64.000000000001
  667. 64.100000000001
  668. 64.200000000001
  669. 64.300000000001
  670. 64.400000000001
  671. 64.500000000001
  672. 64.600000000001
  673. 64.700000000001
  674. 64.800000000001
  675. 64.900000000001
  676. 65.000000000001
  677. 65.100000000001
  678. 65.200000000001
  679. 65.300000000001
  680. 65.400000000001
  681. 65.500000000001
  682. 65.600000000001
  683. 65.700000000001
  684. 65.800000000001
  685. 65.900000000001
  686. 66.000000000001
  687. 66.100000000001
  688. 66.200000000001
  689. 66.300000000001
  690. 66.400000000001
  691. 66.5
  692. 66.6
  693. 66.7
  694. 66.8
  695. 66.9
  696. 67
  697. 67.1
  698. 67.2
  699. 67.3
  700. 67.4
  701. 67.5
  702. 67.6
  703. 67.7
  704. 67.8
  705. 67.9
  706. 68
  707. 68.1
  708. 68.2
  709. 68.3
  710. 68.4
  711. 68.5
  712. 68.6
  713. 68.7
  714. 68.8
  715. 68.9
  716. 69
  717. 69.1
  718. 69.2
  719. 69.3
  720. 69.4
  721. 69.5
  722. 69.6
  723. 69.7
  724. 69.8
  725. 69.9
  726. 70
  727. 70.1
  728. 70.2
  729. 70.3
  730. 70.4
  731. 70.5
  732. 70.6
  733. 70.7
  734. 70.8
  735. 70.9
  736. 71
  737. 71.1
  738. 71.2
  739. 71.3
  740. 71.4
  741. 71.5
  742. 71.6
  743. 71.7
  744. 71.8
  745. 71.9
  746. 72
  747. 72.1
  748. 72.2
  749. 72.3
  750. 72.4
  751. 72.5
  752. 72.6
  753. 72.7
  754. 72.8
  755. 72.9
  756. 73
  757. 73.1
  758. 73.2
  759. 73.3
  760. 73.4
  761. 73.5
  762. 73.6
  763. 73.7
  764. 73.8
  765. 73.9
  766. 74
  767. 74.1
  768. 74.2
  769. 74.3
  770. 74.4
  771. 74.5
  772. 74.6
  773. 74.7
  774. 74.8
  775. 74.9
  776. 75
  777. 75.1
  778. 75.2
  779. 75.3
  780. 75.4
  781. 75.5
  782. 75.6
  783. 75.7
  784. 75.8
  785. 75.9
  786. 76
  787. 76.1
  788. 76.2
  789. 76.3
  790. 76.4
  791. 76.5
  792. 76.6
  793. 76.7
  794. 76.8
  795. 76.9
  796. 77
  797. 77.1
  798. 77.2
  799. 77.3
  800. 77.4
  801. 77.5
  802. 77.6
  803. 77.7
  804. 77.8
  805. 77.9
  806. 78
  807. 78.1
  808. 78.2
  809. 78.3
  810. 78.4
  811. 78.5
  812. 78.6
  813. 78.7
  814. 78.8
  815. 78.9
  816. 79
  817. 79.1
  818. 79.2
  819. 79.3
  820. 79.4
  821. 79.5
  822. 79.6
  823. 79.7
  824. 79.8
  825. 79.9
  826. 80
  827. 80.1
  828. 80.2
  829. 80.3
  830. 80.4
  831. 80.5
  832. 80.6
  833. 80.7
  834. 80.8
  835. 80.9
  836. 81
  837. 81.1
  838. 81.2
  839. 81.3
  840. 81.4
  841. 81.5
  842. 81.6
  843. 81.7
  844. 81.8
  845. 81.9
  846. 82
  847. 82.1
  848. 82.2
  849. 82.3
  850. 82.4
  851. 82.5
  852. 82.6
  853. 82.7
  854. 82.8
  855. 82.9
  856. 83
  857. 83.1
  858. 83.2
  859. 83.3
  860. 83.4
  861. 83.5
  862. 83.6
  863. 83.7
  864. 83.8
  865. 83.9
  866. 84
  867. 84.099999999999
  868. 84.199999999999
  869. 84.299999999999
  870. 84.399999999999
  871. 84.499999999999
  872. 84.599999999999
  873. 84.699999999999
  874. 84.799999999999
  875. 84.899999999999
  876. 84.999999999999
  877. 85.099999999999
  878. 85.199999999999
  879. 85.299999999999
  880. 85.399999999999
  881. 85.499999999999
  882. 85.599999999999
  883. 85.699999999999
  884. 85.799999999999
  885. 85.899999999999
  886. 85.999999999999
  887. 86.099999999999
  888. 86.199999999999
  889. 86.299999999999
  890. 86.399999999999
  891. 86.499999999999
  892. 86.599999999999
  893. 86.699999999999
  894. 86.799999999999
  895. 86.899999999999
  896. 86.999999999999
  897. 87.099999999999
  898. 87.199999999999
  899. 87.299999999999
  900. 87.399999999999
  901. 87.499999999999
  902. 87.599999999999
  903. 87.699999999999
  904. 87.799999999999
  905. 87.899999999999
  906. 87.999999999999
  907. 88.099999999999
  908. 88.199999999999
  909. 88.299999999999
  910. 88.399999999999
  911. 88.499999999999
  912. 88.599999999999
  913. 88.699999999999
  914. 88.799999999999
  915. 88.899999999999
  916. 88.999999999999
  917. 89.099999999999
  918. 89.199999999999
  919. 89.299999999999
  920. 89.399999999999
  921. 89.499999999999
  922. 89.599999999999
  923. 89.699999999999
  924. 89.799999999999
  925. 89.899999999999
  926. 89.999999999999
  927. 90.099999999999
  928. 90.199999999999
  929. 90.299999999999
  930. 90.399999999999
  931. 90.499999999999
  932. 90.599999999999
  933. 90.699999999999
  934. 90.799999999999
  935. 90.899999999999
  936. 90.999999999999
  937. 91.099999999999
  938. 91.199999999999
  939. 91.299999999999
  940. 91.399999999999
  941. 91.499999999999
  942. 91.599999999999
  943. 91.699999999999
  944. 91.799999999999
  945. 91.899999999999
  946. 91.999999999999
  947. 92.099999999999
  948. 92.199999999999
  949. 92.299999999999
  950. 92.399999999999
  951. 92.499999999999
  952. 92.599999999999
  953. 92.699999999999
  954. 92.799999999999
  955. 92.899999999999
  956. 92.999999999999
  957. 93.099999999999
  958. 93.199999999999
  959. 93.299999999999
  960. 93.399999999999
  961. 93.499999999999
  962. 93.599999999999
  963. 93.699999999999
  964. 93.799999999999
  965. 93.899999999999
  966. 93.999999999999
  967. 94.099999999999
  968. 94.199999999999
  969. 94.299999999999
  970. 94.399999999999
  971. 94.499999999999
  972. 94.599999999999
  973. 94.699999999999
  974. 94.799999999999
  975. 94.899999999999
  976. 94.999999999999
  977. 95.099999999999
  978. 95.199999999999
  979. 95.299999999999
  980. 95.399999999999
  981. 95.499999999999
  982. 95.599999999999
  983. 95.699999999999
  984. 95.799999999999
  985. 95.899999999999
  986. 95.999999999999
  987. 96.099999999999
  988. 96.199999999999
  989. 96.299999999999
  990. 96.399999999999
  991. 96.499999999999
  992. 96.599999999999
  993. 96.699999999999
  994. 96.799999999999
  995. 96.899999999999
  996. 96.999999999999
  997. 97.099999999999
  998. 97.199999999999
  999. 97.299999999999
  1000. 97.399999999999
  1001. 97.499999999999
  1002. 97.599999999999
  1003. 97.699999999999
  1004. 97.799999999999
  1005. 97.899999999999
  1006. 97.999999999999
  1007. 98.099999999999
  1008. 98.199999999999
  1009. 98.299999999999
  1010. 98.399999999999
  1011. 98.499999999999
  1012. 98.599999999999
  1013. 98.699999999999
  1014. 98.799999999999
  1015. 98.899999999999
  1016. 98.999999999999
  1017. 99.099999999999
  1018. 99.199999999999
  1019. 99.299999999999
  1020. 99.399999999999
  1021. 99.499999999999
  1022. 99.599999999999
  1023. 99.699999999999
  1024. 99.799999999999
  1025. 99.899999999999
  1026. 99.999999999999
  1027. 100.1
  1028. 100.2
  1029. 100.3
  1030. 100.4
  1031. 100.5
  1032. 100.6
  1033. 100.7
  1034. 100.8
  1035. 100.9
  1036. 101
  1037.  
  1038. Done

Paste is for source code and general debugging text.

Login or Register to delete or keep track of your pastes.