3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar; public function __construct($bar) { $this->bar = $bar; } } $a = new Foo("hello"); $b = new Foo(true); var_dump($a == $b);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.30.0060.00814.39
7.3.20.0800.00714.65
7.3.10.0980.00614.57
7.3.00.0930.00614.69
7.2.160.0080.00814.50
7.2.150.0840.00714.90
7.2.140.0940.00614.90
7.2.130.0960.00714.89
7.2.120.1040.00814.89
7.2.110.1490.00814.90
7.2.100.1270.00814.95
7.2.90.1070.00714.99
7.2.80.1130.00614.95
7.2.70.1030.00714.90
7.2.60.1350.00614.93
7.2.50.1250.00714.92
7.2.40.0660.00614.93
7.2.30.0960.00414.88
7.2.20.1040.00714.86
7.2.10.1610.00814.91
7.2.00.0880.00514.91
7.1.270.1320.00313.71
7.1.260.1270.00413.90
7.1.250.0860.00613.78
7.1.240.1040.00713.90
7.1.230.0990.00713.72
7.1.220.0810.00413.88
7.1.210.1010.00513.78
7.1.200.0910.01013.66
7.1.190.0820.00813.90
7.1.180.1160.01013.86
7.1.170.0760.00213.72
7.1.160.0810.01113.74
7.1.150.0980.00713.93
7.1.140.0770.00913.74
7.1.130.0940.00813.78
7.1.120.0640.01213.85
7.1.110.0830.01513.79
7.1.100.0950.00713.74
7.1.90.0940.00813.83
7.1.80.0720.01113.87
7.1.70.0790.00913.99
7.1.60.0640.00813.70
7.1.50.0600.00713.79
7.1.40.0550.01313.54
7.1.30.0680.00813.87
7.1.20.0510.00713.68
7.1.10.0710.01213.86
7.1.00.0640.00713.83
7.0.330.0980.00813.58
7.0.320.0930.01113.39
7.0.310.0930.01013.49
7.0.300.0890.00713.51
7.0.290.0800.01213.39
7.0.280.0900.00513.63
7.0.270.0540.01013.31
7.0.260.0770.00713.33
7.0.250.0820.00913.64
7.0.240.0850.00813.56
7.0.230.0690.00913.65
7.0.220.0570.01113.54
7.0.210.0870.00513.52
7.0.200.0720.00213.49
7.0.190.0680.01313.60
7.0.180.0850.01013.64
7.0.170.0690.00313.63
7.0.160.0500.01013.46
7.0.150.0700.00513.59
7.0.140.0720.01013.76
7.0.130.0730.01313.65
7.0.120.0640.00513.54
7.0.110.0610.01213.62
7.0.100.0640.01013.50
7.0.90.0590.00913.44
7.0.80.0540.01513.47
7.0.70.0730.00413.49
7.0.60.0530.00713.51
7.0.50.0670.01313.59
7.0.40.0510.00513.55
7.0.30.0530.01213.61
7.0.20.0650.01213.63
7.0.10.0610.00313.59
7.0.00.0570.01113.70
hhvm-3.22.00.1690.20290.71
hhvm-3.21.30.1330.16190.31
hhvm-3.21.00.1610.18690.58
hhvm-3.20.20.1230.19790.92
hhvm-3.19.20.1490.18789.53
hhvm-3.18.50.1240.18688.69
hhvm-3.18.40.1410.17488.45
hhvm-3.17.30.1160.16687.55
hhvm-3.15.40.1150.14685.21
hhvm-3.13.20.1410.14396.60
hhvm-3.12.140.1430.15695.56
hhvm-3.11.10.1470.16387.76
hhvm-3.10.10.1210.13584.64
5.6.400.0080.00513.98
5.6.390.0140.00814.50
5.6.380.0150.01214.60
5.6.370.0180.00814.42
5.6.360.0160.00914.42
5.6.350.0130.01214.15
5.6.340.0190.01014.43
5.6.330.0110.01014.34
5.6.320.0110.00614.36
5.6.310.0140.00614.22
5.6.300.0140.00914.33
5.6.290.0130.00614.33
5.6.280.0140.01414.15
5.6.270.0110.01114.35
5.6.260.0130.00814.25
5.6.250.0220.01014.26
5.6.240.0210.00914.44
5.6.230.0110.01914.35
5.6.220.0150.00814.26
5.6.210.0210.00914.27
5.6.200.0100.01314.18
5.6.190.0220.00314.44
5.6.180.0180.00814.29
5.6.170.0160.00314.31
5.6.160.0140.01014.36
5.6.150.0130.01014.24
5.6.140.0200.00814.30
5.6.130.0130.01014.24
5.6.120.0150.00414.42
5.6.110.0200.00614.25
5.6.100.0180.00714.19
5.6.90.0170.00514.06
5.6.80.0140.01314.22
5.6.70.0130.01114.18
5.6.60.0170.00914.22
5.6.50.0110.01114.04
5.6.40.0150.00914.25
5.6.30.0200.01214.35
5.6.20.0130.00614.16
5.6.10.0140.00814.38
5.6.00.0120.01014.32
5.5.380.0120.00612.73
5.5.370.0140.01112.75
5.5.360.0120.00612.69
5.5.350.0160.00912.43
5.5.340.0130.01112.53
5.5.330.0080.01012.88
5.5.320.0120.00712.80
5.5.310.0140.00812.77
5.5.300.0150.01012.85
5.5.290.0160.00312.53
5.5.280.0100.01212.74
5.5.270.0180.00512.77
5.5.260.0110.01112.57
5.5.250.0120.00512.54
5.5.240.0140.00312.61
5.5.230.0130.00712.46
5.5.220.0140.00112.66
5.5.210.0170.00512.57
5.5.200.0160.00812.60
5.5.190.0160.00512.37
5.5.180.0080.01112.38
5.5.170.0150.00812.67
5.5.160.0110.00812.65
5.5.150.0150.00412.71
5.5.140.0100.00612.71
5.5.130.0110.00712.76
5.5.120.0170.00312.63
5.5.110.0180.00112.68
5.5.100.0090.00512.75
5.5.90.0050.01012.62
5.5.80.0180.00412.84
5.5.70.0140.00412.61
5.5.60.0140.00812.61
5.5.50.0110.00512.60
5.5.40.0050.01112.48
5.5.30.0150.00412.45
5.5.20.0050.01012.57
5.5.10.0080.00912.35
5.5.00.0050.01212.43
5.4.450.0080.00711.12
5.4.440.0130.00411.02
5.4.430.0140.00711.11
5.4.420.0070.00811.01
5.4.410.0130.00911.05
5.4.400.0150.00511.01
5.4.390.0120.00310.87
5.4.380.0120.00410.94
5.4.370.0070.00510.98
5.4.360.0080.00511.02
5.4.350.0130.00711.00
5.4.340.0160.00010.96
5.4.330.0070.00710.95
5.4.320.0110.00710.99
5.4.310.0110.00611.09
5.4.300.0130.00310.87
5.4.290.0100.00211.02
5.4.280.0130.00310.97
5.4.270.0110.00210.86
5.4.260.0080.00410.80
5.4.250.0060.00810.78
5.4.240.0070.00510.96
5.4.230.0100.00611.02
5.4.220.0110.00610.86
5.4.210.0110.00810.95
5.4.200.0080.00510.84
5.4.190.0120.00210.97
5.4.180.0140.00410.81
5.4.170.0110.00810.91
5.4.160.0100.00710.87
5.4.150.0110.00510.83
5.4.140.0130.00210.98
5.4.130.0110.00810.88
5.4.120.0050.00710.89
5.4.110.0090.00611.10
5.4.100.0070.00610.87
5.4.90.0120.01210.84
5.4.80.0150.00011.00
5.4.70.0130.00410.90
5.4.60.0090.00610.98
5.4.50.0050.00710.99
5.4.40.0080.00410.97
5.4.30.0070.01311.04
5.4.20.0130.00710.93
5.4.10.0070.00511.01
5.4.00.0060.00710.92
5.3.290.0040.01010.60
5.3.280.0090.00910.43
5.3.270.0130.00210.49
5.3.260.0110.00710.62
5.3.250.0090.00610.65
5.3.240.0100.00710.53
5.3.230.0080.00710.53
5.3.220.0060.00510.35
5.3.210.0060.00610.30
5.3.200.0120.00310.24
5.3.190.0130.00910.35
5.3.180.0090.00510.40
5.3.170.0080.00510.32
5.3.160.0100.00810.51
5.3.150.0080.00410.38
5.3.140.0090.00810.49
5.3.130.0130.00310.39
5.3.120.0070.00410.52
5.3.110.0060.01110.45
5.3.100.0030.01010.34
5.3.90.0060.00710.34
5.3.80.0140.00210.32
5.3.70.0090.00810.35
5.3.60.0100.00310.42
5.3.50.0100.00610.39
5.3.40.0160.00010.18
5.3.30.0110.00810.28
5.3.20.0110.00510.47
5.3.10.0090.00210.24
5.3.00.0100.00810.11
5.2.170.0090.0019.45
5.2.160.0080.0039.38
5.2.150.0070.0059.48
5.2.140.0080.0039.55
5.2.130.0070.0039.50
5.2.120.0090.0029.53
5.2.110.0080.0079.46
5.2.100.0120.0049.38
5.2.90.0120.0039.26
5.2.80.0060.0059.19
5.2.70.0120.0069.25
5.2.60.0080.0049.26
5.2.50.0050.0099.24
5.2.40.0070.0089.19
5.2.30.0100.0039.15
5.2.20.0080.0029.16
5.2.10.0070.0059.05
5.2.00.0060.0048.97
5.1.60.0080.0058.64
5.1.50.0070.0058.63
5.1.40.0050.0068.70
5.1.30.0090.0028.61
5.1.20.0090.0018.67
5.1.10.0070.0028.67
5.1.00.0030.0058.66
5.0.50.0070.0028.21
5.0.40.0050.0038.12
5.0.30.0020.0058.08
5.0.20.0060.0047.95
5.0.10.0100.0008.02
5.0.00.0100.0008.02
4.4.90.0070.0037.63
4.4.80.0050.0027.63
4.4.70.0020.0047.63
4.4.60.0080.0017.63
4.4.50.0060.0037.63
4.4.40.0040.0057.63
4.4.30.0030.0047.63
4.4.20.0060.0017.63
4.4.10.0040.0037.63
4.4.00.0020.0077.63
4.3.110.0040.0017.63
4.3.100.0050.0047.63
4.3.90.0050.0037.63
4.3.80.0040.0037.63
4.3.70.0030.0047.63
4.3.60.0060.0067.63
4.3.50.0040.0037.63
4.3.40.0020.0047.63
4.3.30.0030.0067.63
4.3.20.0050.0057.63
4.3.10.0020.0047.63
4.3.00.0060.0057.63