3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // using debug_backtrace(); function a($inicial) { echo "Inicial => ", $inicial; $total = $inicial++; b($total); } function b($total) { echo "Total => ", $total; print_r(debug_backtrace()); } a(1);

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.60.0000.00716.84
7.2.00.0040.01119.36
7.1.200.0060.00315.59
7.1.100.0040.00818.38
7.1.70.0070.00317.02
7.1.60.0030.01419.30
7.1.50.0190.00434.77
7.1.00.0030.06722.51
7.0.200.0030.00516.48
7.0.140.0030.07322.10
7.0.60.0030.06019.91
7.0.50.0130.07717.86
7.0.40.0130.03320.23
7.0.30.0200.04320.22
7.0.20.0230.04020.30
7.0.10.0030.05020.21
7.0.00.0030.04720.25
5.6.280.0100.06721.13
5.6.210.0130.05020.61
5.6.200.0070.06718.16
5.6.190.0070.04020.49
5.6.180.0470.07720.50
5.6.170.0330.06020.54
5.6.160.0070.04020.46
5.6.150.0070.05018.17
5.6.140.0030.04018.28
5.6.130.0030.04018.13
5.6.120.0030.05320.98
5.6.110.0170.07020.97
5.6.100.0030.09021.14
5.6.90.0030.05021.04
5.6.80.0070.08320.59
5.5.350.0300.06020.43
5.5.340.0070.03718.07
5.5.330.0330.05020.23
5.5.320.0470.06320.29
5.5.310.0170.04020.38
5.5.300.0030.04017.91
5.5.290.0100.07317.99
5.5.280.0070.08320.66
5.5.270.0200.03720.95
5.5.260.0070.08320.65
5.5.250.0030.04320.47
5.5.240.0030.08020.19
5.4.450.0100.04719.33
5.4.440.0070.07319.48
5.4.430.0200.04019.32
5.4.420.0070.07719.17
5.4.410.0030.06319.44
5.4.400.0100.06719.25
5.4.390.0100.06719.12
5.4.380.0100.05718.96
5.4.370.0030.07018.98
5.4.360.0130.07019.01
5.4.350.0100.04019.14
5.4.340.0170.07019.20
5.4.320.0130.07719.14
5.4.310.0030.08019.04
5.4.300.0030.06719.00
5.4.290.0100.07719.15
5.4.280.0100.07719.15
5.4.270.0170.06019.18
5.4.260.0100.04719.14
5.4.250.0000.05719.23
5.4.240.0030.04019.14
5.4.230.0100.07719.24
5.4.220.0100.05318.91
5.4.210.0070.06318.88
5.4.200.0130.06319.14
5.4.190.0030.03719.14
5.4.180.0000.04019.23
5.4.170.0030.03718.84
5.4.160.0070.03319.13
5.4.150.0000.04019.02
5.4.140.0070.03316.46
5.4.130.0030.03316.45
5.4.120.0000.03716.40
5.4.110.0000.03716.54
5.4.100.0000.04316.48
5.4.90.0130.02716.48
5.4.80.0030.03316.36
5.4.70.0070.03016.45
5.4.60.0070.03316.42
5.4.50.0030.03716.44
5.4.40.0030.03716.64
5.4.30.0030.03316.27
5.4.20.0130.02716.50
5.4.10.0070.03016.50
5.4.00.0070.03015.76
5.3.290.0000.08314.67
5.3.280.0070.04314.62
5.3.270.0100.03714.65
5.3.260.0030.03714.53
5.3.250.0000.04014.66
5.3.240.0070.03314.63
5.3.230.0030.03714.75
5.3.220.0070.04014.60
5.3.210.0030.04014.58
5.3.200.0100.03714.58
5.3.190.0070.03314.57
5.3.180.0070.03314.45
5.3.170.0000.04014.71
5.3.160.0030.04014.62
5.3.150.0070.03314.71
5.3.140.0070.03314.56
5.3.130.0070.03314.57
5.3.120.0030.04314.56
5.3.110.0030.03714.56
5.3.100.0030.03714.05
5.3.90.0100.03014.05
5.3.80.0170.02714.17
5.3.70.0030.03714.02
5.3.60.0030.03714.00
5.3.50.0000.04013.90
5.3.40.0030.04313.84
5.3.30.0130.02714.07
5.3.20.0000.03713.75
5.3.10.0000.03713.73
5.3.00.0000.03713.64
5.2.170.0000.03011.20
5.2.160.0000.03011.18
5.2.150.0000.03011.20
5.2.140.0000.03011.20
5.2.130.0000.03011.11
5.2.120.0100.02011.10
5.2.110.0030.02711.16
5.2.100.0030.03011.07
5.2.90.0070.03311.15
5.2.80.0170.05011.02
5.2.70.0000.03711.04
5.2.60.0070.06311.06
5.2.50.0030.05710.98
5.2.40.0070.04010.89
5.2.30.0100.05710.86
5.2.20.0070.06010.96
5.2.10.0070.05310.92
5.2.00.0030.03010.73
5.1.60.0030.0379.95
5.1.50.0100.0239.95
5.1.40.0070.04710.02
5.1.30.0030.06010.31
5.1.20.0030.05710.50
5.1.10.0070.03710.18
5.1.00.0030.04710.09
5.0.50.0030.0438.52
5.0.40.0100.0408.34
5.0.30.0070.0678.22
5.0.20.0070.0438.11
5.0.10.0100.0408.14
5.0.00.0000.0678.21
4.4.90.0070.0307.93
4.4.80.0030.0307.93
4.4.70.0030.0377.93
4.4.60.0030.0377.93
4.4.50.0070.0307.93
4.4.40.0000.0277.93
4.4.30.0000.0407.93
4.4.20.0000.0207.93
4.4.10.0070.0307.93
4.4.00.0030.0407.93
4.3.110.0070.0307.93
4.3.100.0070.0337.93
4.3.90.0030.0137.93
4.3.80.0030.0577.93
4.3.70.0030.0377.93
4.3.60.0070.0277.93
4.3.50.0030.0337.93
4.3.40.0070.0277.93
4.3.30.0000.0307.93
4.3.20.0000.0377.93
4.3.10.0000.0277.93
4.3.00.0030.0307.93