3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(array(5,2,20,26,11) as $number){ echo 'Before: ' . $number . ' '; if (9 > $number && $number < 36 && $number !== 11 && $number !== 22) { echo 'After: ' . $number . "\n"; } }

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.0180.00498.97
7.3.0rc30.0220.00316.55
7.3.0beta10.0030.00712.80
7.2.00.0070.00719.45
7.1.200.0040.00715.97
7.1.100.0040.00718.07
7.1.70.0040.01217.02
7.1.60.0150.01119.46
7.1.50.0070.01416.90
7.1.00.0030.07722.41
7.0.200.0000.00716.79
7.0.140.0000.07722.22
7.0.60.0300.08019.86
7.0.50.0100.07717.89
7.0.40.0070.08720.12
7.0.30.0470.07320.13
7.0.20.0230.06320.33
7.0.10.0130.07720.21
7.0.00.0030.04320.04
5.6.280.0000.07721.11
5.6.210.0030.08320.51
5.6.200.0070.08718.23
5.6.190.0100.08020.61
5.6.180.0270.07720.39
5.6.170.0300.05720.55
5.6.160.0070.05020.33
5.6.150.0000.05018.22
5.6.140.0030.08318.16
5.6.130.0030.04018.11
5.6.120.0030.04321.03
5.6.110.0000.04320.97
5.6.100.0070.05720.88
5.6.90.0100.08021.00
5.6.80.0100.07720.50
5.5.350.0000.03720.38
5.5.340.0000.04017.92
5.5.330.0070.04020.40
5.5.320.0070.08720.28
5.5.310.0300.06720.29
5.5.300.0070.05318.00
5.5.290.0030.08017.96
5.5.280.0070.05320.74
5.5.270.0030.04320.76
5.5.260.0100.06720.87
5.5.250.0070.04020.61
5.5.240.0030.07720.26
5.4.450.0670.05719.27
5.4.440.0430.06319.31
5.4.430.0730.06719.48
5.4.420.0100.06019.44
5.4.410.0530.04319.50
5.4.400.0700.05719.29
5.4.390.0530.05318.94
5.4.380.0300.06318.57
5.4.370.0600.04718.68
5.4.360.0330.05718.52
5.4.350.0300.06018.68
5.4.340.0330.05018.50
5.4.320.0080.03512.45
5.4.310.0040.04112.45
5.4.300.0100.04612.46
5.4.290.0090.03612.45
5.4.280.0030.04012.35
5.4.270.0070.03912.35
5.4.260.0040.04412.35
5.4.250.0090.04412.35
5.4.240.0080.04112.35
5.4.230.0080.04212.34
5.4.220.0040.04012.34
5.4.210.0100.04312.34
5.4.200.0100.04712.34
5.4.190.0060.04112.34
5.4.180.0070.04612.34
5.4.170.0100.04712.35
5.4.160.0080.04612.34
5.4.150.0120.04112.34
5.4.140.0080.04712.03
5.4.130.0050.04812.01
5.4.120.0100.04411.98
5.4.110.0110.04211.97
5.4.100.0110.04211.96
5.4.90.0050.05311.96
5.4.80.0110.04811.96
5.4.70.0100.04811.96
5.4.60.0070.04511.96
5.4.50.0130.04411.96
5.4.40.0080.03911.95
5.4.30.0060.03811.95
5.4.20.0130.02911.95
5.4.10.0050.03611.95
5.4.00.0060.03811.43
5.3.290.0050.04112.80
5.3.280.0100.03512.71
5.3.270.0110.03612.72
5.3.260.0070.04612.72
5.3.250.0070.04012.72
5.3.240.0040.04412.72
5.3.230.0060.04212.70
5.3.220.0130.03312.68
5.3.210.0040.04812.68
5.3.200.0120.04612.68
5.3.190.0070.04212.68
5.3.180.0080.04212.68
5.3.170.0060.04312.67
5.3.160.0080.04212.68
5.3.150.0080.04312.67
5.3.140.0070.04712.66
5.3.130.0070.04312.66
5.3.120.0090.04112.66
5.3.110.0080.04112.66
5.3.100.0060.04312.12
5.3.90.0080.04012.08
5.3.80.0080.04312.07
5.3.70.0080.04112.07
5.3.60.0050.04512.06
5.3.50.0030.04412.00
5.3.40.0040.03912.00
5.3.30.0060.03511.94
5.3.20.0060.04311.72
5.3.10.0060.04011.69
5.3.00.0070.04311.67
5.2.170.0030.0399.18
5.2.160.0060.0379.18
5.2.150.0080.0339.18
5.2.140.0050.0519.17
5.2.130.0060.0429.13
5.2.120.0080.0399.13
5.2.110.0080.0429.14
5.2.100.0050.0439.14
5.2.90.0060.0449.14
5.2.80.0100.0379.14
5.2.70.0050.0399.14
5.2.60.0100.0389.09
5.2.50.0070.0359.06
5.2.40.0050.0479.03
5.2.30.0100.0339.02
5.2.20.0040.0369.00
5.2.10.0090.0368.94
5.2.00.0080.0418.79
5.1.60.0070.0358.07
5.1.50.0070.0338.07
5.1.40.0070.0378.05
5.1.30.0090.0368.41
5.1.20.0080.0368.43
5.1.10.0060.0438.15
5.1.00.0040.0348.15
5.0.50.0050.0206.63
5.0.40.0050.0186.49
5.0.30.0040.0326.30
5.0.20.0030.0296.27
5.0.10.0050.0286.25
5.0.00.0030.0426.24
4.4.90.0060.0164.78
4.4.80.0050.0244.75
4.4.70.0030.0244.75
4.4.60.0040.0204.76
4.4.50.0070.0194.77
4.4.40.0060.0334.71
4.4.30.0070.0184.76
4.4.20.0060.0224.84
4.4.10.0040.0244.85
4.4.00.0040.0354.76
4.3.110.0020.0234.67
4.3.100.0060.0194.66
4.3.90.0030.0224.63
4.3.80.0030.0314.58
4.3.70.0050.0194.63
4.3.60.0020.0224.63
4.3.50.0040.0224.63
4.3.40.0030.0314.54
4.3.30.0080.0163.29
4.3.20.0030.0203.27
4.3.10.0040.0193.23
4.3.00.0170.0178.05