3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(str_replace(" \012", 't\0t', " \01234"));

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.0090.00998.97
7.3.0rc30.0260.01016.66
7.3.0beta10.0030.00712.48
7.3.0alpha10.0030.00712.38
7.2.60.0070.01016.53
7.2.00.0040.00818.86
7.1.200.0090.00315.66
7.1.100.0040.00718.14
7.1.70.0040.00417.09
7.1.60.0030.01619.17
7.1.50.0060.01616.61
7.1.00.0030.06322.54
7.0.200.0080.00016.58
7.0.140.0000.07722.07
7.0.100.0030.05719.88
7.0.90.0070.08020.02
7.0.80.0030.05019.93
7.0.70.0000.04020.00
7.0.60.0000.04319.97
7.0.50.0230.07020.30
7.0.40.0070.08320.00
7.0.30.0130.08020.07
7.0.20.0000.04320.15
7.0.10.0100.05020.07
7.0.00.0000.05020.05
5.6.250.0130.07020.49
5.6.240.0070.06720.52
5.6.230.0070.04020.67
5.6.220.0000.04320.57
5.6.210.0070.03720.62
5.6.200.0070.04021.03
5.6.190.0070.07721.04
5.6.180.0030.05720.94
5.6.170.0100.06721.13
5.6.160.0070.04021.02
5.6.150.0070.08321.01
5.6.140.0070.08021.05
5.6.130.0030.04021.12
5.6.120.0030.04320.95
5.6.110.0030.04021.07
5.6.100.0000.04721.01
5.6.90.0130.03321.00
5.6.80.0000.04020.45
5.6.70.0070.05020.39
5.6.60.0000.05020.45
5.6.50.0000.04020.39
5.6.40.0030.04020.48
5.6.30.0030.05320.30
5.6.20.0070.03720.37
5.6.10.0030.04020.39
5.6.00.0030.06020.34
5.5.380.0170.03720.53
5.5.370.0030.04320.48
5.5.360.0100.03720.55
5.5.350.0030.04020.41
5.5.340.0030.04020.87
5.5.330.0100.07720.92
5.5.320.0070.05720.63
5.5.310.0000.05320.81
5.5.300.0000.05320.86
5.5.290.0030.04320.72
5.5.280.0070.04020.79
5.5.270.0000.04720.75
5.5.260.0030.04020.62
5.5.250.0070.05020.69
5.5.240.0070.03720.21
5.5.230.0030.04720.28
5.5.220.0030.04020.24
5.5.210.0070.03320.13
5.5.200.0070.05020.18
5.5.190.0070.04020.16
5.5.180.0070.03720.18
5.5.160.0070.04020.11
5.5.150.0030.06020.25
5.5.140.0030.03720.13
5.5.130.0070.07720.16
5.5.120.0100.04020.22
5.5.110.0200.06320.19
5.5.100.0130.07720.11
5.5.90.0070.05720.00
5.5.80.0030.06020.06
5.5.70.0030.07720.05
5.5.60.0200.06319.99
5.5.50.0070.07719.99
5.5.40.0070.07720.08
5.5.30.0100.07720.07
5.5.20.0030.07320.07
5.5.10.0030.07720.06
5.5.00.0070.03720.05
5.4.450.0000.05319.39
5.4.440.0030.04019.39
5.4.430.0000.04319.47
5.4.420.0030.04019.29
5.4.410.0070.05019.24
5.4.400.0000.03719.11
5.4.390.0000.04319.04
5.4.380.0070.04019.07
5.4.370.0030.05719.13
5.4.360.0000.04018.89
5.4.350.0030.04018.93
5.4.340.0100.03019.06
5.4.320.0000.06019.10
5.4.310.0030.07718.89
5.4.300.0000.06718.89
5.4.290.0030.03719.17
5.4.280.0100.03018.97
5.4.270.0070.07319.06
5.4.260.0130.07318.92
5.4.250.0200.06719.06
5.4.240.0070.06319.14
5.4.230.0030.04719.12
5.4.220.0070.07318.89
5.4.210.0030.04719.12
5.4.200.0070.06718.88
5.4.190.0070.04018.78
5.4.180.0100.07019.11
5.4.170.0070.07718.94
5.4.160.0100.08019.01
5.4.150.0130.06319.13
5.4.140.0130.07016.36
5.4.130.0070.06716.33
5.4.120.0130.07016.29
5.4.110.0030.04716.31
5.4.100.0200.03316.21
5.4.90.0130.06716.39
5.4.80.0030.05316.38
5.4.70.0030.08016.29
5.4.60.0070.07316.24
5.4.50.0100.05316.39
5.4.40.0070.04316.45
5.4.30.0100.07016.23
5.4.20.0100.07016.23
5.4.10.0070.07316.26
5.4.00.0100.07015.75
5.3.290.0030.07014.51
5.3.280.0100.07314.57
5.3.270.0070.07314.51
5.3.260.0000.07714.51
5.3.250.0100.07314.47
5.3.240.0070.07714.59
5.3.230.0070.08314.59
5.3.220.0000.05014.48
5.3.210.0030.04714.41
5.3.200.0030.06314.42
5.3.190.0070.05014.51
5.3.180.0030.04714.42
5.3.170.0070.07314.52
5.3.160.0130.03714.57
5.3.150.0100.07314.56
5.3.140.0070.05314.55
5.3.130.0100.07314.55
5.3.120.0070.07714.41
5.3.110.0070.04714.46
5.3.100.0230.05314.04
5.3.90.0100.07013.97
5.3.80.0000.07713.88
5.3.70.0170.06713.97
5.3.60.0030.07713.96
5.3.50.0170.06013.93
5.3.40.0070.07713.80
5.3.30.0070.07013.87
5.3.20.0100.06313.46
5.3.10.0100.07313.64
5.3.00.0030.07713.50
5.2.170.0030.06311.00
5.2.160.0000.06711.00
5.2.150.0070.06310.96
5.2.140.0100.05311.05
5.2.130.0070.05711.16
5.2.120.0100.05311.13
5.2.110.0070.06710.91
5.2.100.0100.05711.02
5.2.90.0070.06011.09
5.2.80.0070.06711.04
5.2.70.0000.05011.05
5.2.60.0170.05011.11
5.2.50.0070.06010.93
5.2.40.0030.05310.86
5.2.30.0070.06310.82
5.2.20.0130.04711.00
5.2.10.0070.04010.90
5.2.00.0100.05310.77
5.1.60.0070.03310.45
5.1.50.0100.04710.45
5.1.40.0030.05310.45
5.1.30.0100.05310.45
5.1.20.0030.05710.45
5.1.10.0030.05010.45
5.1.00.0070.05010.45
5.0.50.0130.03310.45
5.0.40.0000.04710.45
5.0.30.0100.03710.45
5.0.20.0070.04310.45
5.0.10.0000.04310.45
5.0.00.0100.05310.45
4.4.90.0000.03710.45
4.4.80.0000.02010.45
4.4.70.0000.03710.45
4.4.60.0070.02710.45
4.4.50.0000.04010.45
4.4.40.0000.05710.45
4.4.30.0030.03310.45
4.4.20.0000.03310.45
4.4.10.0070.02710.45
4.4.00.0030.05710.45
4.3.110.0030.03310.45
4.3.100.0000.03710.45
4.3.90.0030.01710.45
4.3.80.0030.02710.45
4.3.70.0130.01310.45
4.3.60.0030.03310.45
4.3.50.0000.03710.45
4.3.40.0030.04310.45
4.3.30.0000.02710.45
4.3.20.0030.01710.45
4.3.10.0000.04010.45
4.3.00.0000.03010.45