3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { private $testy; function __construct($input) { $this->testy = $input; } public function doSomething() { return $this->testy * mt_rand(); } } $obj = new Test(1); echo $obj->doSomething();
Output for 7.1.0
960320756
Output for 7.0.14
142050725
Output for 7.0.10
1275144518
Output for 7.0.9
1061485599
Output for 7.0.8
1789804120
Output for 7.0.7
115926098
Output for 7.0.6
1989491507
Output for 7.0.5
114155964
Output for 7.0.4
1267488215
Output for 7.0.3
659842467
Output for 7.0.2
1000313968
Output for 7.0.1
1312943846
Output for 7.0.0
2055419261
Output for hhvm-3.12.0
1428348490
Output for hhvm-3.10.0
2049864369
Output for 5.6.28
1024871477
Output for 5.6.25
749571903
Output for 5.6.24
646189019
Output for 5.6.23
1644311404
Output for 5.6.22
213835106
Output for 5.6.21
1280763600
Output for 5.6.20
1027246973
Output for 5.6.19
791755667
Output for 5.6.18
250165976
Output for 5.6.17
775861646
Output for 5.6.16
695876023
Output for 5.6.15
1213095910
Output for 5.6.14
762191265
Output for 5.6.13
1471962232
Output for 5.6.12
522787303
Output for 5.6.11
487718526
Output for 5.6.10
1494166046
Output for 5.6.9
3412570
Output for 5.6.8
863839157
Output for 5.6.7
775734345
Output for 5.6.6
1100544424
Output for 5.6.5
1918311659
Output for 5.6.4
429078789
Output for 5.6.3
227755181
Output for 5.6.2
1778095896
Output for 5.6.1
176080179
Output for 5.6.0
776606385
Output for 5.5.38
615493366
Output for 5.5.37
676136582
Output for 5.5.36
751479334
Output for 5.5.35
880566998
Output for 5.5.34
959914764
Output for 5.5.33
505069875
Output for 5.5.32
214400978
Output for 5.5.31
301233806
Output for 5.5.30
2125259660
Output for 5.5.29
1804465300
Output for 5.5.28
609060450
Output for 5.5.27
1416222057
Output for 5.5.26
1018093292
Output for 5.5.25
773776411
Output for 5.5.24
334037605
Output for 5.5.23
899667509
Output for 5.5.22
206796724
Output for 5.5.21
1736995808
Output for 5.5.20
255902826
Output for 5.5.19
2064750825
Output for 5.5.18
1015168206
Output for 5.5.16
1402783834
Output for 5.5.15
68145083
Output for 5.5.14
1367935803
Output for 5.5.13
119504573
Output for 5.5.12
881935374
Output for 5.5.11
1935916009
Output for 5.5.10
880975804
Output for 5.5.9
573979144
Output for 5.5.8
263592396
Output for 5.5.7
343757911
Output for 5.5.6
1467304291
Output for 5.5.5
311981282
Output for 5.5.4
324086202
Output for 5.5.3
1931977164
Output for 5.5.2
371069941
Output for 5.5.1
563026419
Output for 5.5.0
1666799714
Output for 5.4.45
583859880
Output for 5.4.44
1172185082
Output for 5.4.43
1598658024
Output for 5.4.42
1800842697
Output for 5.4.41
1333394314
Output for 5.4.40
129372103
Output for 5.4.39
1553481519
Output for 5.4.38
848224533
Output for 5.4.37
1437197179
Output for 5.4.36
1678501490
Output for 5.4.35
1319836926
Output for 5.4.34
760956950
Output for 5.4.32
225560882
Output for 5.4.31
1189760127
Output for 5.4.30
503350887
Output for 5.4.29
1935980240
Output for 5.4.28
1183498785
Output for 5.4.27
672558713
Output for 5.4.26
668731705
Output for 5.4.25
1435146854
Output for 5.4.24
1352441625
Output for 5.4.23
1380480144
Output for 5.4.22
1526060500
Output for 5.4.21
966771058
Output for 5.4.20
433453821
Output for 5.4.19
1136198054
Output for 5.4.18
174037106
Output for 5.4.17
1363693928
Output for 5.4.16
527031493
Output for 5.4.15
991461531
Output for 5.4.14
489397040
Output for 5.4.13
405778475
Output for 5.4.12
523677175
Output for 5.4.11
456796742
Output for 5.4.10
1691415059
Output for 5.4.9
610974353
Output for 5.4.8
1848248485
Output for 5.4.7
606931831
Output for 5.4.6
51694457
Output for 5.4.5
1808741563
Output for 5.4.4
780264266
Output for 5.4.3
1529773591
Output for 5.4.2
347268152
Output for 5.4.1
1287310516
Output for 5.4.0
1909064689
Output for 5.3.29
880615676
Output for 5.3.28
1143573789
Output for 5.3.27
411732483
Output for 5.3.26
289398644
Output for 5.3.25
62673967
Output for 5.3.24
239342539
Output for 5.3.23
438577417
Output for 5.3.22
1289277049
Output for 5.3.21
1488248393
Output for 5.3.20
249549954
Output for 5.3.19
688586753
Output for 5.3.18
950335794
Output for 5.3.17
1301807498
Output for 5.3.16
905013836
Output for 5.3.15
13657973
Output for 5.3.14
508906358
Output for 5.3.13
763131935
Output for 5.3.12
457847048
Output for 5.3.11
1007308471
Output for 5.3.10
524851870
Output for 5.3.9
170027482
Output for 5.3.8
1370176637
Output for 5.3.7
243685617
Output for 5.3.6
845780407
Output for 5.3.5
1035130105
Output for 5.3.4
1058705842
Output for 5.3.3
1676045410
Output for 5.3.2
2124903746
Output for 5.3.1
1489636876
Output for 5.3.0
1879902598
Output for 5.2.17
701316315
Output for 5.2.16
1666128049
Output for 5.2.15
1610035402
Output for 5.2.14
1956711516
Output for 5.2.13
778583105
Output for 5.2.12
1708395220
Output for 5.2.11
156091827
Output for 5.2.10
213125554
Output for 5.2.9
941098325
Output for 5.2.8
1942294841
Output for 5.2.7
1996641573
Output for 5.2.6
1623111921
Output for 5.2.5
1737471735
Output for 5.2.4
655692112
Output for 5.2.3
1624867566
Output for 5.2.2
1674238056
Output for 5.2.1
950137213
Output for 5.2.0
1762173488
Output for 5.1.6
825693084
Output for 5.1.5
765510547
Output for 5.1.4
368865167
Output for 5.1.3
2137604644
Output for 5.1.2
1174802618
Output for 5.1.1
31929434
Output for 5.1.0
1346276887
Output for 5.0.5
1321949730
Output for 5.0.4
1375265117
Output for 5.0.3
2131280706
Output for 5.0.2
1798874362
Output for 5.0.1
1333867122
Output for 5.0.0
536500391
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/HAVen 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/HAVen 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/HAVen on line 4
Process exited with code 255.