3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class SuperPuper { protected $hhh; public function __construct($hhh) { $this->hhh = (int)$hhh; } public function getHhh() { return $this->hhh; } } function f($q) { for ($i = 0; $i < $q; $i++) { $obj = new SuperPuper($i*10000); print $obj->getHhh(); } } f(1); f(123); f(194); f(224); f(346); f(500); ?>
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
00100002000030000400005000060000700008000090000100000110000120000130000140000150000160000170000180000190000200000210000220000230000240000250000260000270000280000290000300000310000320000330000340000350000360000370000380000390000400000410000420000430000440000450000460000470000480000490000500000510000520000530000540000550000560000570000580000590000600000610000620000630000640000650000660000670000680000690000700000710000720000730000740000750000760000770000780000790000800000810000820000830000840000850000860000870000880000890000900000910000920000930000940000950000960000970000980000990000100000010100001020000103000010400001050000106000010700001080000109000011000001110000112000011300001140000115000011600001170000118000011900001200000121000012200000100002000030000400005000060000700008000090000100000110000120000130000140000150000160000170000180000190000200000210000220000230000240000250000260000270000280000290000300000310000320000330000340000350000360000370000380000390000400000410000420000430000440000450000460000470000480000490000500000510000520000530000540000550000560000570000580000590000600000610000620000630000640000650000660000670000680000690000700000710000720000730000740000750000760000770000780000790000800000810000820000830000840000850000860000870000880000890000900000910000920000930000940000950000960000970000980000990000100000010100001020000103000010400001050000106000010700001080000109000011000001110000112000011300001140000115000011600001170000118000011900001200000121000012200001230000124000012500001260000127000012800001290000130000013100001320000133000013400001350000136000013700001380000139000014000001410000142000014300001440000145000014600001470000148000014900001500000151000015200001530000154000015500001560000157000015800001590000160000016100001620000163000016400001650000166000016700001680000169000017000001710000172000017300001740000175000017600001770000178000017900001800000181000018200001830000184000018500001860000187000018800001890000190000019100001920000193000001000020000300004000050000600007000080000900001000001100001200001300001400001500001600001700001800001900002000002100002200002300002400002500002600002700002800002900003000003100003200003300003400003500003600003700003800003900004000004100004200004300004400004500004600004700004800004900005000005100005200005300005400005500005600005700005800005900006000006100006200006300006400006500006600006700006800006900007000007100007200007300007400007500007600007700007800007900008000008100008200008300008400008500008600008700008800008900009000009100009200009300009400009500009600009700009800009900001000000101000010200001030000104000010500001060000107000010800001090000110000011100001120000113000011400001150000116000011700001180000119000012000001210000122000012300001240000125000012600001270000128000012900001300000131000013200001330000134000013500001360000137000013800001390000140000014100001420000143000014400001450000146000014700001480000149000015000001510000152000015300001540000155000015600001570000158000015900001600000161000016200001630000164000016500001660000167000016800001690000170000017100001720000173000017400001750000176000017700001780000179000018000001810000182000018300001840000185000018600001870000188000018900001900000191000019200001930000194000019500001960000197000019800001990000200000020100002020000203000020400002050000206000020700002080000209000021000002110000212000021300002140000215000021600002170000218000021900002200000221000022200002230000010000200003000040000500006000070000800009000010000011000012000013000014000015000016000017000018000019000020000021000022000023000024000025000026000027000028000029000030000031000032000033000034000035000036000037000038000039000040000041000042000043000044000045000046000047000048000049000050000051000052000053000054000055000056000057000058000059000060000061000062000063000064000065000066000067000068000069000070000071000072000073000074000075000076000077000078000079000080000081000082000083000084000085000086000087000088000089000090000091000092000093000094000095000096000097000098000099000010000001010000102000010300001040000105000010600001070000108000010900001100000111000011200001130000114000011500001160000117000011800001190000120000012100001220000123000012400001250000126000012700001280000129000013000001310000132000013300001340000135000013600001370000138000013900001400000141000014200001430000144000014500001460000147000014800001490000150000015100001520000153000015400001550000156000015700001580000159000016000001610000162000016300001640000165000016600001670000168000016900001700000171000017200001730000174000017500001760000177000017800001790000180000018100001820000183000018400001850000186000018700001880000189000019000001910000192000019300001940000195000019600001970000198000019900002000000201000020200002030000204000020500002060000207000020800002090000210000021100002120000213000021400002150000216000021700002180000219000022000002210000222000022300002240000225000022600002270000228000022900002300000231000023200002330000234000023500002360000237000023800002390000240000024100002420000243000024400002450000246000024700002480000249000025000002510000252000025300002540000255000025600002570000258000025900002600000261000026200002630000264000026500002660000267000026800002690000270000027100002720000273000027400002750000276000027700002780000279000028000002810000282000028300002840000285000028600002870000288000028900002900000291000029200002930000294000029500002960000297000029800002990000300000030100003020000303000030400003050000306000030700003080000309000031000003110000312000031300003140000315000031600003170000318000031900003200000321000032200003230000324000032500003260000327000032800003290000330000033100003320000333000033400003350000336000033700003380000339000034000003410000342000034300003440000345000001000020000300004000050000600007000080000900001000001100001200001300001400001500001600001700001800001900002000002100002200002300002400002500002600002700002800002900003000003100003200003300003400003500003600003700003800003900004000004100004200004300004400004500004600004700004800004900005000005100005200005300005400005500005600005700005800005900006000006100006200006300006400006500006600006700006800006900007000007100007200007300007400007500007600007700007800007900008000008100008200008300008400008500008600008700008800008900009000009100009200009300009400009500009600009700009800009900001000000101000010200001030000104000010500001060000107000010800001090000110000011100001120000113000011400001150000116000011700001180000119000012000001210000122000012300001240000125000012600001270000128000012900001300000131000013200001330000134000013500001360000137000013800001390000140000014100001420000143000014400001450000146000014700001480000149000015000001510000152000015300001540000155000015600001570000158000015900001600000161000016200001630000164000016500001660000167000016800001690000170000017100001720000173000017400001750000176000017700001780000179000018000001810000182000018300001840000185000018600001870000188000018900001900000191000019200001930000194000019500001960000197000019800001990000200000020100002020000203000020400002050000206000020700002080000209000021000002110000212000021300002140000215000021600002170000218000021900002200000221000022200002230000224000022500002260000227000022800002290000230000023100002320000233000023400002350000236000023700002380000239000024000002410000242000024300002440000245000024600002470000248000024900002500000251000025200002530000254000025500002560000257000025800002590000260000026100002620000263000026400002650000266000026700002680000269000027000002710000272000027300002740000275000027600002770000278000027900002800000281000028200002830000284000028500002860000287000028800002890000290000029100002920000293000029400002950000296000029700002980000299000030000003010000302000030300003040000305000030600003070000308000030900003100000311000031200003130000314000031500003160000317000031800003190000320000032100003220000323000032400003250000326000032700003280000329000033000003310000332000033300003340000335000033600003370000338000033900003400000341000034200003430000344000034500003460000347000034800003490000350000035100003520000353000035400003550000356000035700003580000359000036000003610000362000036300003640000365000036600003670000368000036900003700000371000037200003730000374000037500003760000377000037800003790000380000038100003820000383000038400003850000386000038700003880000389000039000003910000392000039300003940000395000039600003970000398000039900004000000401000040200004030000404000040500004060000407000040800004090000410000041100004120000413000041400004150000416000041700004180000419000042000004210000422000042300004240000425000042600004270000428000042900004300000431000043200004330000434000043500004360000437000043800004390000440000044100004420000443000044400004450000446000044700004480000449000045000004510000452000045300004540000455000045600004570000458000045900004600000461000046200004630000464000046500004660000467000046800004690000470000047100004720000473000047400004750000476000047700004780000479000048000004810000482000048300004840000485000048600004870000488000048900004900000491000049200004930000494000049500004960000497000049800004990000
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/Cl70k on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/Cl70k on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/Cl70k on line 4
Process exited with code 255.