3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if( preg_match( '[^a-zA-Z0-9\_\-]', "../../../index" ) ) { echo "404.php"; } else { echo "nyert"; }
based on Cld6Y

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.0030.01316.72
7.2.00.0040.01119.66
7.1.200.0070.00715.72
7.1.100.0030.00617.59
7.1.70.0000.00716.91
7.1.60.0160.00619.46
7.1.50.0080.00417.06
7.1.00.0100.07022.59
7.0.200.0000.00816.71
7.0.140.0070.05022.13
7.0.60.0030.08319.81
7.0.50.0130.03017.89
7.0.40.0130.04019.98
7.0.30.0270.07320.21
7.0.20.0400.06020.05
7.0.10.0100.08320.10
7.0.00.0030.09320.31
5.6.210.0270.06320.66
5.6.200.0030.04018.12
5.6.190.0070.04320.67
5.6.180.0330.07320.41
5.6.170.0270.08020.38
5.6.160.0070.08320.38
5.6.150.0030.08018.08
5.6.140.0000.08718.21
5.6.130.0070.04018.15
5.6.120.0100.05320.96
5.6.110.0100.08721.13
5.6.100.0100.04321.00
5.6.90.0100.06021.10
5.6.80.0130.05320.38
5.5.350.0330.07320.45
5.5.340.0130.07318.02
5.5.330.0030.05020.44
5.5.320.0100.07720.17
5.5.310.0430.06720.13
5.5.300.0100.07317.87
5.5.290.0130.07017.94
5.5.280.0070.04020.76
5.5.270.0000.04720.61
5.5.260.0030.07720.86
5.5.250.0030.04020.70
5.5.240.0000.08720.26
5.4.450.0230.05719.41
5.4.440.0800.06319.50
5.4.430.1100.05719.10
5.4.420.0930.05719.32
5.4.410.0930.06019.50
5.4.400.0900.04719.20
5.4.390.0070.07018.70
5.4.380.0270.06718.52
5.4.370.0270.05318.70
5.4.360.0270.05718.46
5.4.350.0270.05318.62
5.4.340.0130.06718.69
5.4.320.0200.06718.56
5.4.310.0230.07318.58
5.4.300.0370.06018.48
5.4.290.0430.05318.52
5.4.280.0300.06718.49
5.4.270.0200.06318.62
5.4.260.0300.05318.45
5.4.250.0170.05718.79
5.4.240.0130.06718.71
5.4.230.0230.05318.61
5.4.220.0230.05318.66
5.4.210.0400.05718.61
5.4.200.0270.06316.56
5.4.190.0130.07018.68
5.4.180.0230.05718.75
5.4.170.0230.07318.44
5.4.160.0230.05318.60
5.4.150.0170.06018.71
5.4.140.0300.05016.16
5.4.130.0270.05016.35
5.4.120.0270.04016.16
5.4.110.0230.05316.26
5.4.100.0330.04316.14
5.4.90.0270.05716.25
5.4.80.0370.06016.04
5.4.70.0330.05316.02
5.4.60.0200.05716.13
5.4.50.0300.04716.03
5.4.40.0130.05716.22
5.4.30.0130.08016.22
5.4.20.0400.05316.22
5.4.10.0230.06716.16
5.4.00.0170.05315.70
5.3.290.0200.06014.81
5.3.280.0230.05314.65
5.3.270.0370.06014.58
5.3.260.0300.07014.60
5.3.250.0270.06714.70
5.3.240.0130.06714.67
5.3.230.0130.07314.54
5.3.220.0200.05714.52
5.3.210.0470.06014.55
5.3.200.0200.06314.52
5.3.190.0200.06014.57
5.3.180.0270.06314.50
5.3.170.0270.05714.59
5.3.160.0170.05714.50
5.3.150.0200.06014.47
5.3.140.0270.05714.46
5.3.130.0230.06714.52
5.3.120.0230.06314.50
5.3.110.0330.05314.61
5.3.100.0200.06714.13
5.3.90.0330.05714.09
5.3.80.0230.06014.01
5.3.70.0130.07014.05
5.3.60.0270.04714.16
5.3.50.0370.05713.93
5.3.40.0270.06713.89
5.3.30.0270.04713.81
5.3.20.0130.06713.66
5.3.10.0270.05313.58
5.3.00.0200.05713.59
5.2.170.0170.06011.21
5.2.160.0200.05711.20
5.2.150.0470.04711.28
5.2.140.0200.05311.12
5.2.130.0270.04311.04
5.2.120.0300.04711.04
5.2.110.0270.04011.04
5.2.100.0130.05311.01
5.2.90.0070.06011.08
5.2.80.0170.04311.01
5.2.70.0200.05711.00
5.2.60.0230.05310.96
5.2.50.0170.04711.05
5.2.40.0230.04311.03
5.2.30.0170.04011.04
5.2.20.0200.04010.88
5.2.10.0130.06310.95
5.2.00.0100.04710.84
5.1.60.0070.04010.12
5.1.50.0230.03710.09
5.1.40.0130.03710.11
5.1.30.0170.05010.29
5.1.20.0030.05010.37
5.1.10.0100.04710.09
5.1.00.0130.04010.08
5.0.50.0130.0338.63
5.0.40.0100.0338.42
5.0.30.0000.0578.25
5.0.20.0070.0408.17
5.0.10.0100.0308.18
5.0.00.0130.0438.29
4.4.90.0030.0305.92
4.4.80.0030.0335.93
4.4.70.0170.0235.90
4.4.60.0030.0335.92
4.4.50.0170.0235.82
4.4.40.0100.0335.91
4.4.30.0100.0205.91
4.4.20.0070.0235.95
4.4.10.0130.0275.93
4.4.00.0030.0505.97
4.3.110.0100.0275.85
4.3.100.0170.0205.80
4.3.90.0100.0275.76
4.3.80.0070.0335.79
4.3.70.0130.0205.82
4.3.60.0100.0205.89
4.3.50.0170.0205.80
4.3.40.0000.0505.88
4.3.30.0030.0274.54
4.3.20.0030.0234.65
4.3.10.0000.0274.50
4.3.00.0000.0239.35