3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('/^(\d*)(\d{2})(\d{2})$/', '$1/$2/$2', 124122354523);

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.0rc20.0070.00716.71
7.3.0beta10.0050.00512.48
7.3.0alpha10.0100.00312.74
7.2.60.0000.01216.79
7.1.200.0040.00815.50
7.1.70.0040.00417.23
7.1.60.0080.00419.33
7.1.50.0070.01017.00
7.1.00.0130.06322.48
7.0.200.0290.00314.86
7.0.140.0030.06721.98
7.0.60.0170.06319.90
7.0.50.0030.04017.86
7.0.40.0130.08320.11
7.0.30.0230.05320.35
7.0.20.0330.07720.02
7.0.10.0170.04720.14
7.0.00.0170.06320.14
5.6.280.0000.07320.78
5.6.210.0100.07720.60
5.6.200.0100.03318.22
5.6.190.0270.06320.56
5.6.180.0030.06720.40
5.6.170.0330.07020.44
5.6.160.0070.05020.38
5.6.150.0030.06318.13
5.6.140.0030.05318.24
5.6.130.0070.03718.12
5.6.120.0100.03721.14
5.6.110.0070.06021.02
5.6.100.0030.04321.10
5.6.90.0030.07720.99
5.6.80.0030.06320.34
5.5.350.0030.04020.37
5.5.340.0070.08318.02
5.5.330.0070.06020.40
5.5.320.0070.08320.13
5.5.310.0270.07720.18
5.5.300.0070.04718.03
5.5.290.0100.03718.00
5.5.280.0070.06720.73
5.5.270.0130.08020.66
5.5.260.0000.05020.83
5.5.250.0200.06320.60
5.5.240.0030.07020.28
5.4.450.0230.07019.12
5.4.440.0200.04319.41
5.4.430.0230.07719.56
5.4.420.0230.08019.43
5.4.410.0230.07719.44
5.4.400.0230.06719.09
5.4.390.0230.07319.25
5.4.380.0170.04319.25
5.4.370.0200.06319.16
5.4.360.0370.05019.06
5.4.350.0170.07319.07
5.4.340.0270.06719.24
5.4.320.0200.06018.93
5.4.310.0270.06018.92
5.4.300.0300.07019.09
5.4.290.0230.06318.80
5.4.280.0170.05018.88
5.4.270.0270.06719.24
5.4.260.0230.03019.09
5.4.250.0200.07018.92
5.4.240.0270.05718.80
5.4.230.0270.06719.21
5.4.220.0330.05719.23
5.4.210.0270.03019.09
5.4.200.0230.05719.05
5.4.190.0170.07019.05
5.4.180.0230.06319.07
5.4.170.0170.03719.07
5.4.160.0270.02318.86
5.4.150.0170.06718.80
5.4.140.0200.05016.18
5.4.130.0130.05716.25
5.4.120.0370.05016.24
5.4.110.0070.06716.48
5.4.100.0200.04716.39
5.4.90.0230.04016.39
5.4.80.0170.08016.20
5.4.70.0330.05716.43
5.4.60.0170.07316.18
5.4.50.0200.06316.38
5.4.40.0270.06316.18
5.4.30.0170.05316.39
5.4.20.0200.07016.36
5.4.10.0200.06716.03
5.4.00.0130.06715.89
5.3.290.0230.07314.52
5.3.280.0100.07314.64
5.3.270.0170.04714.44
5.3.260.0200.03714.45
5.3.250.0270.05314.63
5.3.240.0130.07014.55
5.3.230.0170.04314.46
5.3.220.0200.05714.40
5.3.210.0170.04314.48
5.3.200.0200.04714.54
5.3.190.0200.05014.42
5.3.180.0170.07314.51
5.3.170.0230.07014.54
5.3.160.0300.06314.43
5.3.150.0200.07014.54
5.3.140.0230.06714.39
5.3.130.0270.06314.63
5.3.120.0100.04714.57
5.3.110.0300.06314.38
5.3.100.0100.05313.98
5.3.90.0270.05013.96
5.3.80.0200.07313.96
5.3.70.0170.05013.89
5.3.60.0200.07313.95
5.3.50.0200.07313.77
5.3.40.0230.04313.89
5.3.30.0270.03713.95
5.3.20.0200.03313.53
5.3.10.0200.07013.49
5.3.00.0230.06313.58
5.2.170.0200.06012.16
5.2.160.0200.04712.16
5.2.150.0130.03712.16
5.2.140.0130.06312.16
5.2.130.0070.06012.16
5.2.120.0130.03312.16
5.2.110.0300.02012.16
5.2.100.0170.05712.16
5.2.90.0170.05712.16
5.2.80.0200.03312.16
5.2.70.0170.05012.16
5.2.60.0230.05312.16
5.2.50.0170.04012.16
5.2.40.0130.03712.16
5.2.30.0100.06012.16
5.2.20.0200.05312.16
5.2.10.0130.04312.16
5.2.00.0170.05312.16
5.1.60.0100.05312.16
5.1.50.0170.04712.16
5.1.40.0230.02012.16
5.1.30.0170.04712.16
5.1.20.0170.05312.16
5.1.10.0100.03712.16
5.1.00.0130.05312.16
5.0.50.0070.04312.16
5.0.40.0070.03312.16
5.0.30.0100.06312.16
5.0.20.0030.02712.16
5.0.10.0130.03312.16
5.0.00.0100.06712.16
4.4.90.0070.02712.16
4.4.80.0070.03012.16
4.4.70.0030.03712.16
4.4.60.0100.03312.16
4.4.50.0030.03312.16
4.4.40.0000.04312.16
4.4.30.0000.03312.16
4.4.20.0030.03312.16
4.4.10.0070.03012.16
4.4.00.0070.04012.16
4.3.110.0130.03012.16
4.3.100.0070.02012.16
4.3.90.0130.02012.16
4.3.80.0030.05312.16
4.3.70.0030.03712.16
4.3.60.0070.02012.16
4.3.50.0030.03312.16
4.3.40.0030.04012.16
4.3.30.0030.03312.16
4.3.20.0070.02012.16
4.3.10.0000.02012.16
4.3.00.0030.01312.16