3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "meno go you to from"; $regexoo = array('to','go'); $text =str_replace($regexoo, '***', $url); echo $text; echo "<hr><br>"; $str = "first base baseball for all"; $pattern = '/\b(base|all)\b/i'; $str = preg_replace($pattern, "FOUND", $str); echo $str;
based on OG14J

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.00.0130.00319.59
7.1.100.0000.01118.09
7.1.70.0040.00417.43
7.1.60.0100.01419.50
7.1.50.0070.00717.13
7.1.00.0100.07022.45
7.0.200.0000.00916.99
7.0.140.0030.07322.08
7.0.60.0070.08719.92
7.0.50.0030.08717.77
7.0.40.0070.07720.25
7.0.30.0230.08020.21
7.0.20.0200.05720.01
7.0.10.0200.04320.34
7.0.00.0100.08320.19
5.6.280.0070.07021.17
5.6.210.0070.08320.58
5.6.200.0070.07318.18
5.6.190.0030.09320.32
5.6.180.0270.07720.42
5.6.170.0170.04720.47
5.6.160.0130.06720.51
5.6.150.0070.05318.20
5.6.140.0030.04018.18
5.6.130.0030.04018.10
5.6.120.0000.05320.99
5.6.110.0070.04020.97
5.6.100.0100.07721.01
5.6.90.0100.06321.09
5.6.80.0070.06720.53
5.6.70.0100.07720.38
5.5.350.0130.08320.41
5.5.340.0070.08017.93
5.5.330.0130.03720.36
5.5.320.0130.08720.40
5.5.310.0170.05720.21
5.5.300.0070.04318.02
5.5.290.0200.03718.02
5.5.280.0100.08320.93
5.5.270.0070.08720.88
5.5.260.0130.05320.79
5.5.250.0100.04020.46
5.5.240.0070.08320.36
5.4.450.0170.05319.35
5.4.440.0900.05319.24
5.4.430.0600.06019.44
5.4.420.0100.05319.40
5.4.410.0230.04319.36
5.4.400.0270.04718.66
5.4.390.0100.06318.80
5.4.380.0170.05318.50
5.4.370.0200.05718.66
5.4.360.0270.04718.71
5.4.350.0230.06318.66
5.4.340.0070.06718.60
5.4.320.0100.06718.57
5.4.310.0200.05718.50
5.4.300.0170.05318.62
5.4.290.0100.06018.49
5.4.280.0230.05018.51
5.4.270.0230.04718.61
5.4.260.0230.04718.70
5.4.250.0170.05318.49
5.4.240.0230.05018.70
5.4.230.0330.04718.44
5.4.220.0230.06318.48
5.4.210.0230.04718.70
5.4.200.0230.05016.64
5.4.190.0370.04018.57
5.4.180.0200.05018.48
5.4.170.0200.05018.73
5.4.160.0170.05718.63
5.4.150.0300.06318.64
5.4.140.0130.06316.19
5.4.130.0200.04716.21
5.4.120.0200.05016.26
5.4.110.0270.05316.18
5.4.100.0300.05716.24
5.4.90.0230.04716.25
5.4.80.0170.05016.23
5.4.70.0170.05316.10
5.4.60.0130.05316.27
5.4.50.0100.04716.22
5.4.40.0100.05316.23
5.4.30.0100.05016.03
5.4.20.0200.04716.21
5.4.10.0300.04316.12
5.4.00.0170.05015.71
5.3.290.0230.05014.66
5.3.280.0130.06014.52
5.3.270.0200.05314.56
5.3.260.0170.05314.52
5.3.250.0130.05714.52
5.3.240.0200.05014.55
5.3.230.0170.05314.59
5.3.220.0200.05014.73
5.3.210.0200.06014.54
5.3.200.0230.04714.60
5.3.190.0200.05714.50
5.3.180.0130.05714.47
5.3.170.0270.04314.61
5.3.160.0230.07014.47
5.3.150.0130.05714.54
5.3.140.0270.04714.55
5.3.130.0170.06014.54
5.3.120.0170.05314.50
5.3.110.0230.05014.50
5.3.100.0130.05714.10
5.3.90.0200.05014.05
5.3.80.0100.05714.11
5.3.70.0200.05014.04
5.3.60.0100.05714.16
5.3.50.0270.04713.89
5.3.40.0270.04313.86
5.3.30.0170.05013.82
5.3.20.0270.04013.79
5.3.10.0200.05013.57
5.3.00.0230.04713.57
5.2.170.0170.04011.11
5.2.160.0130.04311.12
5.2.150.0230.03711.21
5.2.140.0170.04311.21
5.2.130.0200.03711.24
5.2.120.0170.04011.06
5.2.110.0170.04011.07
5.2.100.0100.04311.09
5.2.90.0130.04011.13
5.2.80.0070.05011.11
5.2.70.0200.03711.01
5.2.60.0230.03711.26
5.2.50.0200.05311.07
5.2.40.0200.04011.02
5.2.30.0170.04311.19
5.2.20.0230.03710.98
5.2.10.0170.04010.96
5.2.00.0200.04010.81
5.1.60.0200.0439.98
5.1.50.0130.03310.00
5.1.40.0070.0439.92
5.1.30.0230.03710.34
5.1.20.0170.04310.41
5.1.10.0230.03310.18
5.1.00.0130.05010.10
5.0.50.0100.0338.52
5.0.40.0100.0238.43
5.0.30.0070.0508.25
5.0.20.0070.0308.27
5.0.10.0100.0278.20
5.0.00.0100.0438.14
4.4.90.0070.0205.84
4.4.80.0070.0205.92
4.4.70.0130.0235.81
4.4.60.0170.0135.82
4.4.50.0070.0235.83
4.4.40.0000.0435.85
4.4.30.0070.0275.91
4.4.20.0100.0275.93
4.4.10.0100.0205.98
4.4.00.0030.0505.94
4.3.110.0130.0235.80
4.3.100.0070.0305.85
4.3.90.0130.0135.77
4.3.80.0030.0405.80
4.3.70.0070.0205.77
4.3.60.0030.0235.81
4.3.50.0030.0275.79
4.3.40.0170.0335.77
4.3.30.0100.0174.59
4.3.20.0000.0274.54
4.3.10.0030.0234.57
4.3.00.0000.0236.92