3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = array(true, 'foo', 100, false); array_walk($options, function(&$val) { $val = (is_bool($val)) ? ( ($val) ? 'true' : 'false' ) : $val; }); var_dump($options);

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.00.0030.00619.09
7.1.100.0030.00917.97
7.1.70.0030.00617.22
7.1.60.0040.01219.46
7.1.50.0100.01016.85
7.1.00.0100.07022.40
7.0.200.0030.00316.75
7.0.140.0030.07322.21
7.0.60.0030.04319.95
7.0.50.0170.06017.88
7.0.40.0070.07720.13
7.0.30.0300.04020.23
7.0.20.0330.04320.10
7.0.10.0030.09320.15
7.0.00.0070.09020.19
5.6.280.0070.06720.97
5.6.210.0070.07320.52
5.6.200.0030.04318.12
5.6.190.0070.04020.61
5.6.180.0170.04320.62
5.6.170.0270.08320.56
5.6.160.0170.07320.44
5.6.150.0030.04718.27
5.6.140.0030.07718.28
5.6.130.0070.07718.11
5.6.120.0100.08020.95
5.6.110.0070.04721.03
5.6.100.0200.03320.99
5.6.90.0070.04321.00
5.6.80.0100.03020.41
5.5.350.0200.05020.52
5.5.340.0130.07017.95
5.5.330.0030.04020.40
5.5.320.0230.03320.29
5.5.310.0270.07020.31
5.5.300.0070.07017.95
5.5.290.0030.08318.02
5.5.280.0070.03720.85
5.5.270.0100.04320.87
5.5.260.0130.04720.72
5.5.250.0130.07320.61
5.5.240.0170.07720.16
5.4.450.1270.05019.64
5.4.440.1730.04019.41
5.4.430.1930.03719.27
5.4.420.1930.04019.56
5.4.410.1730.04019.14
5.4.400.1830.04318.98
5.4.390.1200.03719.05
5.4.380.1170.04319.19
5.4.370.1700.04319.00
5.4.360.2070.03319.13
5.4.350.1770.03318.95
5.4.340.1670.03718.95
5.4.320.1730.03718.84
5.4.310.1970.03319.22
5.4.300.2000.03719.14
5.4.290.1800.03719.11
5.4.280.1830.03318.95
5.4.270.2030.04318.84
5.4.260.1870.03018.95
5.4.250.1970.04318.86
5.4.240.2000.04018.96
5.4.230.1800.03318.99
5.4.220.1770.04019.12
5.4.210.1870.03019.13
5.4.200.1970.04319.13
5.4.190.1830.03018.93
5.4.180.2030.03719.14
5.4.170.1830.04019.14
5.4.160.2030.03019.06
5.4.150.1900.03719.18
5.4.140.1670.04016.51
5.4.130.1730.03016.32
5.4.120.2000.03716.30
5.4.110.2000.03716.42
5.4.100.1930.04316.55
5.4.90.1930.04316.41
5.4.80.1700.04016.40
5.4.70.1670.03716.49
5.4.60.1870.04716.53
5.4.50.1800.04316.50
5.4.40.1770.03016.44
5.4.30.1930.04716.24
5.4.20.1970.04016.60
5.4.10.2000.04016.52
5.4.00.2000.04015.84
5.3.290.2130.03314.56
5.3.280.1870.04314.50
5.3.270.1870.04314.52
5.3.260.1970.04714.62
5.3.250.1770.03714.60
5.3.240.1800.03014.52
5.3.230.2000.04314.50
5.3.220.1870.04714.69
5.3.210.1970.04014.53
5.3.200.2000.04014.68
5.3.190.1730.03714.62
5.3.180.2000.04014.46
5.3.170.1970.04014.63
5.3.160.1970.04314.56
5.3.150.2000.03714.64
5.3.140.1700.04014.69
5.3.130.1830.04014.45
5.3.120.1930.04714.55
5.3.110.2030.03714.77
5.3.100.1770.03314.05
5.3.90.2030.03314.07
5.3.80.1800.03714.10
5.3.70.1970.04313.93
5.3.60.1830.04714.01
5.3.50.2100.03014.00
5.3.40.1870.04014.00
5.3.30.1930.03713.82
5.3.20.1870.03713.71
5.3.10.2030.04013.58
5.3.00.1930.04713.57
5.2.170.1800.04011.30
5.2.160.1930.03011.05
5.2.150.1630.03311.09
5.2.140.1800.03311.00
5.2.130.1870.03711.15
5.2.120.1570.03311.11
5.2.110.1630.02311.04
5.2.100.1670.03311.11
5.2.90.1570.03010.99
5.2.80.1770.03310.94
5.2.70.1570.03010.94
5.2.60.1730.03710.89
5.2.50.1670.03011.07
5.2.40.1300.02710.93
5.2.30.1530.03311.02
5.2.20.1430.03010.82
5.2.10.1130.03310.86
5.2.00.1570.03310.76
5.1.60.1400.0239.89
5.1.50.1400.0239.92
5.1.40.1500.0239.95
5.1.30.1330.03010.24
5.1.20.1270.02310.51
5.1.10.1400.03310.11
5.1.00.1270.02310.23
5.0.50.0770.0178.45
5.0.40.0770.0338.28
5.0.30.0630.0308.12
5.0.20.0700.0208.35
5.0.10.0800.0278.10
5.0.00.0530.0508.21
4.4.90.0000.0177.45
4.4.80.0030.0337.45
4.4.70.0030.0177.45
4.4.60.0030.0177.45
4.4.50.0000.0177.45
4.4.40.0000.0277.45
4.4.30.0030.0207.45
4.4.20.0000.0177.45
4.4.10.0000.0307.45
4.4.00.0070.0277.45
4.3.110.0370.0177.45
4.3.100.0700.0137.45
4.3.90.0630.0137.45
4.3.80.0630.0307.45
4.3.70.0830.0207.45
4.3.60.0800.0237.45
4.3.50.0800.0237.45
4.3.40.0830.0207.45
4.3.30.0430.0277.45
4.3.20.0470.0277.45
4.3.10.0430.0307.45
4.3.00.0330.0207.45