3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $current_file_name = basename($_SERVER['PHP_SELF']); echo $current_file_name; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.qDolKq5G.dpuf

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.0080.00016.68
7.2.00.0040.00819.07
7.1.200.0070.00415.67
7.1.100.0080.00318.15
7.1.70.0000.00717.04
7.1.60.0120.01219.46
7.1.50.0070.01516.99
7.1.00.0070.07322.42
7.0.200.0110.00714.55
7.0.140.0170.06022.18
7.0.60.0100.07319.92
7.0.50.0070.07017.83
7.0.40.0030.06020.15
7.0.30.0400.06720.18
7.0.20.0400.04320.01
7.0.10.0030.06720.09
7.0.00.0030.07720.08
5.6.280.0000.07720.79
5.6.210.0030.04320.68
5.6.200.0070.08018.13
5.6.190.0070.08020.77
5.6.180.0300.07320.39
5.6.170.0270.07720.33
5.6.160.0100.08020.48
5.6.150.0030.05018.07
5.6.140.0070.04018.18
5.6.130.0030.07718.16
5.6.120.0100.04321.00
5.6.110.0070.07721.00
5.6.100.0100.08020.97
5.6.90.0070.07721.13
5.6.80.0100.06020.50
5.6.70.3300.03320.27
5.5.350.0300.07320.43
5.5.340.0070.03317.89
5.5.330.0100.08020.41
5.5.320.0430.07320.17
5.5.310.0330.07020.27
5.5.300.0100.08318.01
5.5.290.0000.05017.88
5.5.280.0070.07720.73
5.5.270.0130.08320.75
5.5.260.0130.08020.86
5.5.250.0130.07320.70
5.5.240.0270.06020.17
5.4.450.0070.05719.47
5.4.440.0970.06319.58
5.4.430.0030.06319.58
5.4.420.0830.00019.15
5.4.410.0030.06019.02
5.4.400.0470.02718.75
5.4.390.0200.05318.74
5.4.380.0330.04718.61
5.4.370.0170.04718.47
5.4.360.0100.05018.72
5.4.350.0090.03611.98
5.4.340.0060.03411.97
5.4.320.0050.04612.46
5.4.310.0060.04312.45
5.4.300.0050.03912.45
5.4.290.0060.04312.43
5.4.280.0070.04812.33
5.4.270.0090.04412.33
5.4.260.0120.04812.33
5.4.250.0120.05312.33
5.4.240.0120.05212.34
5.4.230.0090.04212.33
5.4.220.0040.04412.32
5.4.210.0090.04812.33
5.4.200.0070.04512.33
5.4.190.0050.05812.32
5.4.180.0060.06512.32
5.4.170.0080.05512.34
5.4.160.0100.04912.33
5.4.150.0070.04712.32
5.4.140.0070.05512.01
5.4.130.0090.04812.00
5.4.120.0060.05411.95
5.4.110.0060.05411.95
5.4.100.0060.05211.95
5.4.90.0080.05311.95
5.4.80.0090.05911.95
5.4.70.0060.05611.95
5.4.60.0100.05411.95
5.4.50.0060.05511.95
5.4.40.0070.05211.93
5.4.30.0110.05011.93
5.4.20.0100.05311.94
5.4.10.0130.05411.93
5.4.00.0130.04811.43
5.3.290.0120.04312.80
5.3.280.0140.04812.71
5.3.270.0080.04612.73
5.3.260.0080.05712.72
5.3.250.0070.05612.72
5.3.240.0190.04412.72
5.3.230.0120.04812.71
5.3.220.0090.05412.68
5.3.210.0090.05612.68
5.3.200.0120.05212.68
5.3.190.0100.05412.68
5.3.180.0100.05412.67
5.3.170.0100.05212.67
5.3.160.0120.05112.67
5.3.150.0140.05512.67
5.3.140.0080.05512.66
5.3.130.0120.05612.66
5.3.120.0110.04912.66
5.3.110.0090.05612.66
5.3.100.0120.05312.12
5.3.90.0060.04212.08
5.3.80.0120.06212.07
5.3.70.0120.05012.07
5.3.60.0070.04612.06
5.3.50.0080.05012.00
5.3.40.0100.04812.00
5.3.30.0120.06711.95
5.3.20.0070.05011.73
5.3.10.0070.05211.70
5.3.00.0120.05111.69
5.2.170.0070.0459.18
5.2.160.0090.0549.19
5.2.150.0060.0399.19
5.2.140.0090.0369.18
5.2.130.0070.0359.14
5.2.120.0040.0379.14
5.2.110.0080.0349.14
5.2.100.0060.0339.14
5.2.90.0040.0379.14
5.2.80.0080.0359.14
5.2.70.0090.0379.14
5.2.60.0070.0349.09
5.2.50.0060.0419.07
5.2.40.0040.0369.04
5.2.30.0040.0309.01
5.2.20.0070.0269.00
5.2.10.0020.0328.91
5.2.00.0080.0278.77
5.1.60.0030.0258.06
5.1.50.0010.0288.05
5.1.40.0020.0288.04
5.1.30.0070.0328.39
5.1.20.0090.0348.41
5.1.10.0030.0308.13
5.1.00.0060.0268.14
5.0.50.0020.0246.61
5.0.40.0040.0206.47
5.0.30.0080.0386.28
5.0.20.0070.0256.26
5.0.10.0060.0246.23
5.0.00.0040.0396.23
4.4.90.0050.0204.77
4.4.80.0020.0214.76
4.4.70.0050.0194.76
4.4.60.0040.0154.75
4.4.50.0050.0174.77
4.4.40.0020.0304.71
4.4.30.0030.0204.76
4.4.20.0030.0214.84
4.4.10.0020.0214.85
4.4.00.0030.0304.76
4.3.110.0040.0164.67
4.3.100.0020.0174.66
4.3.90.0060.0144.63
4.3.80.0040.0244.58
4.3.70.0040.0184.63
4.3.60.0050.0184.62
4.3.50.0050.0144.63
4.3.40.0030.0254.54
4.3.30.0030.0163.28
4.3.20.0010.0173.26
4.3.10.0010.0173.22
4.3.00.0130.0206.92