3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public $bar = 'baz'; public static $baz = 'bar'; } $foo = new foo; $array = array('key' => 'value'); echo <<<EOL ${array['key']} $foo->bar foo::$baz {foo::$baz} EOL; ?>

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.2.110.0110.00416.55
7.2.100.0000.00816.46
7.2.90.0030.00916.73
7.2.80.0030.00916.66
7.2.70.0030.01016.98
7.2.60.0070.00816.92
7.2.50.0030.01016.91
7.2.40.0000.01117.00
7.2.30.0030.01016.81
7.2.20.0000.01417.09
7.2.10.0060.00316.67
7.2.00.0100.00017.06
7.1.230.0040.00415.80
7.1.220.0030.01115.81
7.1.210.0030.01015.57
7.1.200.0070.00315.73
7.1.190.0070.00715.55
7.1.180.0030.01015.59
7.1.170.0070.00415.70
7.1.160.0050.00215.89
7.1.150.0040.00415.69
7.1.140.0760.00315.70
7.1.130.0040.00715.52
7.1.120.0100.00515.73
7.1.110.0030.01015.85
7.1.100.0050.00815.73
7.1.90.0070.00715.63
7.1.80.0030.00915.72
7.1.70.0020.00916.22
7.1.60.0100.01017.69
7.1.50.0120.01216.27
7.1.40.0030.01016.00
7.1.30.0130.01015.69
7.1.20.0060.01215.75
7.1.10.0120.00415.48
7.1.00.0060.02019.06
7.0.310.0040.00715.40
7.0.300.0030.00915.26
7.0.290.0030.01015.38
7.0.280.0070.00015.36
7.0.270.0100.00315.57
7.0.260.0050.00915.45
7.0.250.0100.00315.16
7.0.240.0090.00615.55
7.0.230.0110.00515.33
7.0.220.0090.00615.54
7.0.210.0040.00815.48
7.0.200.0080.00416.18
7.0.190.0090.00415.22
7.0.180.0060.00815.24
7.0.170.0080.00615.40
7.0.160.0070.01015.20
7.0.150.0120.00315.52
7.0.140.0060.04118.82
7.0.130.0110.00015.38
7.0.120.0100.00215.40
7.0.110.0090.00315.27
7.0.100.0110.00415.57
7.0.90.0070.00415.33
7.0.80.0050.00915.23
7.0.70.0000.04718.61
7.0.60.0130.03718.40
7.0.50.0060.02718.78
7.0.40.0080.02616.70
7.0.30.0080.02316.75
7.0.20.0090.03716.77
7.0.10.0060.03616.82
7.0.00.0070.04616.78
hhvm-3.22.00.0560.12890.38
hhvm-3.21.30.0530.12390.13
hhvm-3.21.00.0400.12190.50
hhvm-3.20.20.0570.14889.59
hhvm-3.19.20.0700.12589.00
hhvm-3.18.50.0330.13587.88
hhvm-3.18.40.0570.11487.96
hhvm-3.17.30.0660.12886.98
hhvm-3.15.40.0670.11885.62
hhvm-3.13.20.0930.11796.85
hhvm-3.12.140.0670.14595.79
hhvm-3.11.10.0630.13387.63
hhvm-3.10.10.0600.11684.35
5.6.380.0090.00614.32
5.6.370.0060.00613.98
5.6.360.0070.00714.18
5.6.350.0100.00314.44
5.6.340.0030.00614.55
5.6.330.0120.00414.27
5.6.320.0120.00314.15
5.6.310.0070.00414.49
5.6.300.0100.00314.24
5.6.290.0100.00214.78
5.6.280.0070.03917.79
5.6.270.0090.00514.45
5.6.260.0080.00414.43
5.6.250.0080.00514.29
5.6.240.0060.01014.35
5.6.230.0090.00914.32
5.6.220.0030.03817.47
5.6.210.0070.04017.69
5.6.200.0080.02317.77
5.6.190.0150.04017.83
5.6.180.0070.02617.82
5.6.170.0060.04517.83
5.6.160.0070.04517.61
5.6.150.0050.04317.61
5.6.140.0040.04717.56
5.6.130.0070.04317.84
5.6.120.0020.03917.56
5.6.110.0060.04517.73
5.6.100.0050.04517.66
5.6.90.0080.04617.66
5.6.80.0080.04317.39
5.6.70.0050.04317.47
5.6.60.0080.04717.42
5.6.50.0030.03817.31
5.6.40.0070.04017.35
5.6.30.0100.03817.49
5.6.20.0060.03217.38
5.6.10.0080.04217.26
5.6.00.0060.04717.29
5.5.380.0100.00611.00
5.5.370.0040.00710.97
5.5.360.0110.04015.96
5.5.350.0050.04615.61
5.5.340.0030.04615.95
5.5.330.0040.02715.95
5.5.320.0100.02016.00
5.5.310.0080.03815.94
5.5.300.0150.03615.86
5.5.290.0090.03815.96
5.5.280.0090.04116.20
5.5.270.0040.02716.10
5.5.260.0020.04515.91
5.5.250.0050.04715.98
5.5.240.0060.04415.69
5.5.230.0050.04315.76
5.5.220.0030.02915.74
5.5.210.0070.03915.68
5.5.200.0060.03415.67
5.5.190.0100.04015.64
5.5.180.0050.04115.71
5.5.170.0090.00614.12
5.5.160.0090.04015.53
5.5.150.0050.03715.73
5.5.140.0070.03715.60
5.5.130.0120.03315.75
5.5.120.0070.03715.70
5.5.110.0050.04515.65
5.5.100.0020.04115.55
5.5.90.0020.04215.65
5.5.80.0020.03915.42
5.5.70.0050.02215.62
5.5.60.0100.03515.43
5.5.50.0070.02115.72
5.5.40.0090.04015.35
5.5.30.0090.03915.64
5.5.20.0050.03315.54
5.5.10.0080.02015.49
5.5.00.0050.02115.64
5.4.450.0070.04115.26
5.4.440.0050.04215.37
5.4.430.0090.03815.14
5.4.420.0020.04515.19
5.4.410.0050.04015.40
5.4.400.0050.03514.95
5.4.390.0070.04214.99
5.4.380.0040.03914.90
5.4.370.0070.02215.08
5.4.360.0080.03015.09
5.4.350.0050.04015.07
5.4.340.0050.03315.10
5.4.330.0040.00411.04
5.4.320.0060.03115.02
5.4.310.0110.03315.17
5.4.300.0050.02215.10
5.4.290.0090.03615.10
5.4.280.0030.05015.11
5.4.270.0050.04015.14
5.4.260.0080.03715.19
5.4.250.0030.04215.24
5.4.240.0050.02214.91
5.4.230.0060.02115.11
5.4.220.0060.04015.15
5.4.210.0000.03915.05
5.4.200.0050.04015.00
5.4.190.0020.02714.92
5.4.180.0050.02215.16
5.4.170.0070.03814.86
5.4.160.0040.02215.15
5.4.150.0040.02015.08
5.4.140.0080.01713.63
5.4.130.0020.02213.70
5.4.120.0060.02213.59
5.4.110.0030.02313.78
5.4.100.0080.01713.81
5.4.90.0070.01813.87
5.4.80.0040.01913.57
5.4.70.0050.03013.69
5.4.60.0000.03113.84
5.4.50.0040.03713.77
5.4.40.0040.02313.56
5.4.30.0010.02313.75
5.4.20.0040.02013.74
5.4.10.0060.02013.78
5.4.00.0050.02213.52
5.3.290.0060.03712.53
5.3.280.0030.04412.54
5.3.270.0060.02012.63
5.3.260.0040.02112.48
5.3.250.0030.02112.63
5.3.240.0030.01912.55
5.3.230.0050.02312.55
5.3.220.0060.01812.58
5.3.210.0070.01812.38
5.3.200.0030.02012.56
5.3.190.0080.01712.49
5.3.180.0060.01812.63
5.3.170.0060.01812.50
5.3.160.0020.02812.55
5.3.150.0030.02112.44
5.3.140.0080.01612.57
5.3.130.0020.02212.63
5.3.120.0030.03112.47
5.3.110.0020.02112.57
5.3.100.0090.02212.34
5.3.90.0060.02212.25
5.3.80.0070.01712.14
5.3.70.0060.01812.23
5.3.60.0050.01812.24
5.3.50.0050.01812.26
5.3.40.0050.02012.15
5.3.30.0030.01912.13
5.3.20.0050.01812.03
5.3.10.0050.01611.90
5.3.00.0040.01911.87
5.2.170.0060.01210.91
5.2.160.0070.01710.90
5.2.150.0030.02010.91
5.2.140.0020.01710.93
5.2.130.0040.01510.92
5.2.120.0020.01710.78
5.2.110.0020.02010.93
5.2.100.0020.02410.92
5.2.90.0070.02010.92
5.2.80.0050.02310.88
5.2.70.0030.03310.85
5.2.60.0050.01210.86
5.2.50.0040.01510.80
5.2.40.0030.01310.89
5.2.30.0030.01310.85
5.2.20.0010.01410.80
5.2.10.0020.02210.79
5.2.00.0040.02310.76
5.1.60.0020.01210.47
5.1.50.0050.01010.47
5.1.40.0000.01610.48
5.1.30.0040.01310.47
5.1.20.0030.01610.47
5.1.10.0020.01510.47
5.1.00.0030.01210.47
5.0.50.0000.01310.47
5.0.40.0030.01210.47
5.0.30.0040.01610.47
5.0.20.0040.01510.47
5.0.10.0040.01010.47
5.0.00.0030.01610.47
4.4.90.0030.00810.47
4.4.80.0050.01310.47
4.4.70.0000.00910.47
4.4.60.0030.00610.47
4.4.50.0030.00710.47
4.4.40.0010.01310.47
4.4.30.0010.00810.47
4.4.20.0000.00910.47
4.4.10.0000.00910.47
4.4.00.0000.01410.47
4.3.110.0000.00910.47
4.3.100.0010.01110.47
4.3.90.0000.02110.47
4.3.80.0020.01310.47
4.3.70.0010.01010.47
4.3.60.0020.01010.47
4.3.50.0040.01710.47
4.3.40.0000.01710.47
4.3.30.0020.01710.47
4.3.20.0030.01810.47
4.3.10.0000.02110.47
4.3.00.0000.02010.47