3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr_replace("12:45",0,2); ?>

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.0060.00619.05
7.1.100.0000.01118.04
7.1.70.0060.00616.99
7.1.60.0100.01419.70
7.1.50.0000.02016.53
7.1.00.0000.07722.27
7.0.200.0030.00616.56
7.0.140.0070.06722.07
7.0.60.0070.07019.81
7.0.50.0100.08017.79
7.0.40.0070.09319.99
7.0.30.0330.08020.20
7.0.20.0400.06320.30
7.0.10.0030.08020.34
7.0.00.0030.05720.16
5.6.280.0070.07021.07
5.6.210.0000.04720.74
5.6.200.0000.06718.22
5.6.190.0070.04020.61
5.6.180.0130.04320.64
5.6.170.0330.03320.38
5.6.160.0170.07720.70
5.6.150.0100.04018.21
5.6.140.0130.07018.21
5.6.130.0100.07718.21
5.6.120.0030.08721.01
5.6.110.0130.06720.98
5.6.100.0170.04321.18
5.6.90.0000.05021.07
5.6.80.0030.05720.37
5.5.350.3670.04020.38
5.5.340.0030.04717.96
5.5.330.0070.08320.13
5.5.320.0200.05320.39
5.5.310.0300.05020.14
5.5.300.0100.05717.91
5.5.290.0000.08317.94
5.5.280.0030.04020.77
5.5.270.0070.08320.75
5.5.260.0070.09020.78
5.5.250.0130.05020.65
5.5.240.0030.07720.18
5.4.450.1230.04319.22
5.4.440.0530.04719.41
5.4.430.0570.04049.64
5.4.420.0270.04346.74
5.4.410.0130.04342.52
5.4.400.0300.03340.27
5.4.390.0570.04737.99
5.4.380.0170.07018.66
5.4.370.0200.06718.49
5.4.360.0100.05318.68
5.4.350.0300.03718.43
5.4.340.0000.06318.54
5.4.320.0060.03612.45
5.4.310.0050.03912.45
5.4.300.0080.04512.45
5.4.290.0050.05012.45
5.4.280.0090.04212.35
5.4.270.0080.04512.35
5.4.260.0100.04012.34
5.4.250.0080.04312.35
5.4.240.0080.04612.34
5.4.230.0090.04812.34
5.4.220.0090.03812.34
5.4.210.0060.03912.34
5.4.200.0070.04012.34
5.4.190.0060.04912.33
5.4.180.0070.04912.34
5.4.170.0090.04612.35
5.4.160.0080.04112.34
5.4.150.0090.04112.34
5.4.140.0070.04912.02
5.4.130.0070.04212.01
5.4.120.0090.04611.96
5.4.110.0090.04611.96
5.4.100.0040.04911.96
5.4.90.0090.04711.96
5.4.80.0130.04511.96
5.4.70.0080.04811.96
5.4.60.0080.04911.96
5.4.50.0100.04811.96
5.4.40.0110.04611.95
5.4.30.0110.04711.95
5.4.20.0080.05111.95
5.4.10.0090.04711.95
5.4.00.0050.05211.43
5.3.290.0090.05012.80
5.3.280.0100.04912.71
5.3.270.0110.04912.72
5.3.260.0060.05512.72
5.3.250.0060.05412.72
5.3.240.0110.04812.72
5.3.230.0050.05212.71
5.3.220.0070.05312.68
5.3.210.0130.06312.68
5.3.200.0080.05312.68
5.3.190.0150.04412.67
5.3.180.0080.05212.67
5.3.170.0080.05212.67
5.3.160.0070.05312.67
5.3.150.0050.05612.68
5.3.140.0090.05112.66
5.3.130.0070.05512.66
5.3.120.0130.04912.66
5.3.110.0120.05012.66
5.3.100.0080.05012.12
5.3.90.0110.04912.08
5.3.80.0110.04612.07
5.3.70.0080.04912.08
5.3.60.0120.04412.07
5.3.50.0130.04512.00
5.3.40.0070.05012.00
5.3.30.0050.05311.94
5.3.20.0090.04711.72
5.3.10.0100.04711.68
5.3.00.0100.04911.68
5.2.170.0110.0389.17
5.2.160.0090.0389.18
5.2.150.0090.0409.18
5.2.140.0050.0449.17
5.2.130.0090.0389.13
5.2.120.0060.0419.13
5.2.110.0070.0399.14
5.2.100.0090.0389.13
5.2.90.0070.0409.14
5.2.80.0070.0419.13
5.2.70.0070.0429.13
5.2.60.0060.0439.08
5.2.50.0080.0469.05
5.2.40.0110.0389.03
5.2.30.0110.0439.01
5.2.20.0060.0449.00
5.2.10.0080.0418.93
5.2.00.0080.0448.79
5.1.60.0130.0318.07
5.1.50.0060.0358.07
5.1.40.0060.0368.05
5.1.30.0070.0568.41
5.1.20.0090.0358.43
5.1.10.0060.0358.14
5.1.00.0080.0378.15
5.0.50.0050.0406.63
5.0.40.0040.0236.49
5.0.30.0030.0356.30
5.0.20.0070.0206.27
5.0.10.0050.0236.25
5.0.00.0080.0336.23
4.4.90.0040.0244.77
4.4.80.0060.0194.76
4.4.70.0040.0214.75
4.4.60.0050.0184.75
4.4.50.0040.0174.77
4.4.40.0030.0304.71
4.4.30.0030.0234.76
4.4.20.0040.0274.84
4.4.10.0020.0284.85
4.4.00.0010.0274.76
4.3.110.0020.0274.67
4.3.100.0060.0224.67
4.3.90.0030.0244.64
4.3.80.0030.0274.59
4.3.70.0050.0234.63
4.3.60.0050.0244.63
4.3.50.0030.0254.63
4.3.40.0050.0364.54
4.3.30.0050.0243.29
4.3.20.0000.0273.27
4.3.10.0040.0233.22
4.3.00.0070.01737.53