3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('test' => true); if (isset($a['test']) && $a['test']) { print "hi"; }
based on hRYE9

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.0rc40.0100.01098.97
7.3.0rc30.0130.00016.17
7.3.0beta10.0070.00312.68
7.3.0alpha10.0110.00012.62
7.2.60.0070.00716.73
7.1.200.0040.00815.64
7.1.70.0040.00716.77
7.1.60.0030.01619.40
7.1.50.0070.01416.95
7.1.00.0000.07722.44
7.0.200.0080.00016.81
7.0.140.0000.07721.93
7.0.110.0700.07020.02
7.0.100.0800.06719.95
7.0.90.0630.06720.08
7.0.80.0530.08019.93
7.0.70.0670.07719.84
7.0.60.0470.05319.90
7.0.50.0500.08019.96
7.0.40.0000.08319.85
7.0.30.0030.07319.73
7.0.20.0100.07719.71
7.0.10.0100.05719.69
7.0.00.0030.07319.71
5.6.280.0000.07721.12
5.6.260.0030.07720.63
5.6.250.0100.07720.55
5.6.240.0170.07020.71
5.6.230.0100.06720.67
5.6.220.0030.06720.54
5.6.210.0100.07320.63
5.6.200.0070.04720.64
5.6.190.0130.07320.64
5.6.180.0100.08020.55
5.6.170.0100.07320.68
5.6.160.0130.07720.61
5.6.150.0130.08020.59
5.6.140.0030.09020.54
5.6.130.0100.07320.69
5.6.120.0030.07320.63
5.6.110.0030.08320.68
5.6.100.0070.04020.59
5.6.90.0100.07720.59
5.6.80.0100.05319.96
5.6.70.0000.07720.21
5.6.60.0100.04719.98
5.6.50.0070.04720.06
5.6.40.0070.07720.05
5.6.30.0070.08319.97
5.6.20.0030.07319.90
5.6.10.0100.07719.93
5.6.00.0130.07719.94
5.5.380.0070.07317.50
5.5.370.0100.06717.54
5.5.360.0070.07717.57
5.5.350.0200.07017.42
5.5.340.0070.08017.87
5.5.330.0000.05718.03
5.5.320.0170.07017.77
5.5.310.0070.07317.77
5.5.300.0170.05318.10
5.5.290.0030.08318.15
5.5.280.0070.05318.10
5.5.270.0070.08018.24
5.5.260.0100.05017.86
5.5.250.0100.07017.65
5.5.240.0100.07317.41
5.5.230.0170.07317.54
5.5.220.0000.05017.24
5.5.210.0100.07317.63
5.5.200.0170.06317.38
5.5.190.0030.08017.38
5.5.180.0030.08017.50
5.5.160.0030.07717.20
5.5.150.0070.07717.21
5.5.140.0070.07717.23
5.5.130.0100.07017.37
5.5.120.0070.07317.19
5.5.110.0130.07017.46
5.5.100.0030.08317.15
5.5.90.0070.05317.37
5.5.80.0070.04717.41
5.5.70.0000.07317.33
5.5.60.0100.06717.01
5.5.50.0030.04717.23
5.5.40.0070.06317.27
5.5.30.0130.03717.48
5.5.20.0000.08317.09
5.5.10.0100.07017.08
5.5.00.0070.07317.21
5.4.450.0030.04719.29
5.4.440.0130.07319.46
5.4.430.0000.05719.27
5.4.420.0070.04319.60
5.4.410.0130.05019.24
5.4.400.0000.05019.08
5.4.390.0070.07719.10
5.4.380.0130.07319.01
5.4.370.0070.07719.11
5.4.360.0100.07019.12
5.4.350.0070.07719.27
5.4.340.0030.07719.12
5.4.320.0000.08719.25
5.4.310.0100.07318.95
5.4.300.0070.07718.94
5.4.290.0100.08019.25
5.4.280.0070.04719.11
5.4.270.0070.07319.07
5.4.260.0130.05319.09
5.4.250.0070.07319.12
5.4.240.0130.04018.95
5.4.230.0000.08719.02
5.4.220.0200.06719.07
5.4.210.0070.08019.02
5.4.200.0130.07319.02
5.4.190.0030.08318.99
5.4.180.0000.05318.93
5.4.170.0200.06718.99
5.4.160.0030.05018.98
5.4.150.0170.06719.05
5.4.140.0070.07316.32
5.4.130.0130.06316.34
5.4.120.0030.06316.45
5.4.110.0130.06316.36
5.4.100.0070.07716.37
5.4.90.0030.07316.50
5.4.80.0070.07016.12
5.4.70.0000.04716.11
5.4.60.0000.03716.16
5.4.50.0100.05716.21
5.4.40.0070.07316.54
5.4.30.0030.07316.45
5.4.20.0030.07716.32
5.4.10.0130.06316.50
5.4.00.0130.06715.61
5.3.290.0070.07714.54
5.3.280.0070.08314.69
5.3.270.0100.07014.57
5.3.260.0000.08014.44
5.3.250.0100.07314.54
5.3.240.0030.06714.39
5.3.230.0070.07714.53
5.3.220.0070.04014.42
5.3.210.0070.05014.63
5.3.200.0070.06714.44
5.3.190.0130.06014.64
5.3.180.0030.07014.45
5.3.170.0000.07714.57
5.3.160.0100.07014.43
5.3.150.0030.07714.58
5.3.140.0070.07014.57
5.3.130.0070.06714.48
5.3.120.0030.06714.48
5.3.110.0170.06314.41
5.3.100.0030.08313.83
5.3.90.0030.07714.11
5.3.80.0070.07014.07
5.3.70.0070.07713.95
5.3.60.0100.06314.06
5.3.50.0000.04713.83
5.3.40.0130.06313.77
5.3.30.0100.05313.78
5.3.20.0030.07713.75
5.3.10.0100.07013.59
5.3.00.0030.07713.48
5.2.170.0070.05011.16
5.2.160.0030.06311.06
5.2.150.0030.04011.06
5.2.140.0130.04711.07
5.2.130.0100.06011.04
5.2.120.0070.03311.05
5.2.110.0000.06311.03
5.2.100.0070.05011.09
5.2.90.0200.04311.01
5.2.80.0000.05311.03
5.2.70.0100.03711.11
5.2.60.0000.06311.00
5.2.50.0000.06711.04
5.2.40.0070.05710.94
5.2.30.0100.05710.87
5.2.20.0070.05711.03
5.2.10.0030.05010.76
5.2.00.0070.06710.56
5.1.60.0070.05310.00
5.1.50.0030.0339.90
5.1.40.0070.0509.91
5.1.30.0070.04710.55
5.1.20.0130.04710.23
5.1.10.0000.05710.23
5.1.00.0000.06010.07
5.0.50.0000.0378.78
5.0.40.0000.0278.46
5.0.30.0030.0508.11
5.0.20.0030.0438.18
5.0.10.0030.0238.32
5.0.00.0100.0578.12
4.4.90.0030.0337.04
4.4.80.0000.0207.04
4.4.70.0130.0337.04
4.4.60.0000.0377.04
4.4.50.0000.0377.04
4.4.40.0000.0607.04
4.4.30.0100.0307.04
4.4.20.0100.0307.04
4.4.10.0000.0337.04
4.4.00.0000.0607.04
4.3.110.0000.0407.04
4.3.100.0000.0377.04
4.3.90.0000.0377.04
4.3.80.0030.0537.04
4.3.70.0000.0277.04
4.3.60.0000.0307.04
4.3.50.0000.0277.04
4.3.40.0000.0407.04
4.3.30.0000.0337.04
4.3.20.0030.0337.04
4.3.10.0030.0337.04
4.3.00.0030.0337.04