3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "yes:".preg_replace("/phpinfo();#|apple/e","phpinfo();#|apple/e","apple"); ?>

Here you find the average performance (time & memory) of each version. A greyed 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.0120.00019.39
7.1.100.0070.01018.19
7.1.70.0070.00016.91
7.1.60.0130.01019.46
7.1.50.0130.01317.00
7.1.00.0030.07722.46
7.0.200.0070.00316.52
7.0.140.0030.07722.00
7.0.100.0130.04319.93
7.0.90.0070.08019.87
7.0.80.0070.04719.83
7.0.70.0070.07319.80
7.0.60.0000.08719.77
7.0.50.0100.05320.38
7.0.40.0070.05720.04
7.0.30.0130.08020.05
7.0.20.0170.07320.11
7.0.10.0000.08320.14
7.0.00.0100.09020.10
5.6.280.0070.07020.89
5.6.250.0070.07720.62
5.6.240.0100.07720.49
5.6.230.0070.08020.62
5.6.220.0030.07320.58
5.6.210.0030.06020.65
5.6.200.0200.06321.04
5.6.190.0070.08320.95
5.6.180.0070.05321.03
5.6.170.0030.08320.93
5.6.160.0100.05721.04
5.6.150.0130.07021.10
5.6.140.0100.08021.09
5.6.130.0070.08320.94
5.6.120.0170.07021.05
5.6.110.0130.07321.07
5.6.100.0000.05321.03
5.6.90.0070.08021.06
5.6.80.0100.07720.40
5.6.70.0100.07320.32
5.6.60.0070.08020.41
5.6.50.0100.07720.46
5.6.40.0100.07020.36
5.6.30.0070.08020.47
5.6.20.0100.07020.44
5.6.10.0000.08720.28
5.6.00.0030.08020.51
5.5.380.0070.07720.41
5.5.370.0070.04320.34
5.5.360.0070.07720.35
5.5.350.0100.04020.36
5.5.340.0070.07320.80
5.5.330.0170.08020.76
5.5.320.0030.08320.76
5.5.310.0100.04720.75
5.5.300.0030.08320.89
5.5.290.0070.08020.86
5.5.280.0100.08020.80
5.5.270.0200.07320.63
5.5.260.0030.08320.71
5.5.250.0100.08020.71
5.5.240.0170.07020.02
5.5.230.0030.08020.27
5.5.220.0070.07720.24
5.5.210.0130.06720.29
5.5.200.0070.07320.18
5.5.190.0100.06320.21
5.5.180.0100.08020.20
5.5.160.0100.06720.13
5.5.150.0100.07720.20
5.5.140.0100.08320.20
5.5.130.0170.07020.21
5.5.120.0070.08020.07
5.5.110.0100.07320.07
5.5.100.0130.07720.07
5.5.90.0070.08020.07
5.5.80.0130.06720.09
5.5.70.0130.07720.16
5.5.60.0000.06719.95
5.5.50.0030.07319.92
5.5.40.0130.07720.02
5.5.30.0070.07719.99
5.5.20.0100.07720.14
5.5.10.0130.07020.02
5.5.00.0030.05720.01
5.4.450.0030.08319.28
5.4.440.0100.05019.45
5.4.430.0030.08319.16
5.4.420.0070.08019.38
5.4.410.0000.07319.14
5.4.400.0170.05719.04
5.4.390.0070.07318.79
5.4.380.0070.07719.06
5.4.370.0100.06319.04
5.4.360.0130.06719.06
5.4.350.0100.06719.06
5.4.340.0000.08318.95
5.4.320.0100.08018.97
5.4.310.0070.07319.07
5.4.300.0030.08319.02
5.4.290.0100.07719.17
5.4.280.0100.07319.12
5.4.270.0070.07719.11
5.4.260.0100.07018.79
5.4.250.0100.08019.09
5.4.240.0030.05319.21
5.4.230.0070.06318.78
5.4.220.0070.08019.21
5.4.210.0070.07019.21
5.4.200.0170.06319.18
5.4.190.0130.07019.05
5.4.180.0070.07318.88
5.4.170.0070.07719.11
5.4.160.0000.07319.20
5.4.150.0030.06019.15
5.4.140.0130.07016.38
5.4.130.0130.04316.12
5.4.120.0070.07716.35
5.4.110.0000.06016.22
5.4.100.0030.06016.21
5.4.90.0100.07016.27
5.4.80.0030.07716.43
5.4.70.0130.06716.38
5.4.60.0100.07316.28
5.4.50.0070.04716.32
5.4.40.0070.07316.46
5.4.30.0170.06316.27
5.4.20.0100.07016.36
5.4.10.0070.07316.17
5.4.00.0030.06015.82
5.3.290.0070.08014.66
5.3.280.0030.08014.45
5.3.270.0030.08014.46
5.3.260.0170.06714.60
5.3.250.0100.07314.45
5.3.240.0130.07314.59
5.3.230.0170.05314.46
5.3.220.0130.06714.55
5.3.210.0030.08014.39
5.3.200.0070.08014.53
5.3.190.0100.07714.56
5.3.180.0070.06714.42
5.3.170.0170.06714.52
5.3.160.0070.07714.42
5.3.150.0170.06714.53
5.3.140.0100.06314.50
5.3.130.0100.05714.54
5.3.120.0070.06314.41
5.3.110.0200.06314.48
5.3.100.0070.07014.19
5.3.90.0030.08014.19
5.3.80.0000.08314.19
5.3.70.0070.07314.19
5.3.60.0070.07314.19
5.3.50.0100.07014.19
5.3.40.0130.06314.19
5.3.30.0100.07314.19
5.3.20.0170.06014.19
5.3.10.0030.06314.19
5.3.00.0030.08014.19