3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int) str_replace(":", "", "12:10");

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.10.0060.00616.65
7.3.00.0000.01416.37
7.2.130.0120.00316.74
7.2.120.0030.00716.85
7.2.110.0040.01116.88
7.2.100.0070.00716.45
7.2.90.0090.00416.66
7.2.80.0040.01116.45
7.2.70.0100.00716.88
7.2.60.0030.01316.66
7.2.50.0110.00316.65
7.2.40.0070.00716.90
7.2.30.0040.01416.68
7.2.20.0040.01116.66
7.2.10.0050.00516.84
7.2.00.0040.00818.08
7.1.250.0060.00615.42
7.1.100.0040.00717.93
7.1.70.0020.00517.21
7.1.60.0100.00719.46
7.1.50.0030.00816.89
7.1.00.0070.07322.30
7.0.200.0030.00716.72
7.0.140.0100.06321.95
7.0.60.0030.04020.01
7.0.50.0070.08017.78
7.0.40.0030.05320.04
7.0.30.0200.04320.18
7.0.20.0270.06320.13
7.0.10.0030.04320.21
7.0.00.0000.04319.99
5.6.280.0000.07721.12
5.6.210.0170.06720.47
5.6.200.0070.04718.08
5.6.190.0070.09020.43
5.6.180.0170.06720.60
5.6.170.0230.04720.50
5.6.160.0030.04320.54
5.6.150.0070.04318.18
5.6.140.0000.04718.17
5.6.130.0100.04718.11
5.6.120.0000.05321.11
5.6.110.0200.07320.99
5.6.100.0070.08720.88
5.6.90.0030.04021.05
5.6.80.0070.03720.47
5.5.350.4330.03320.40
5.5.340.0030.08317.91
5.5.330.0070.08320.40
5.5.320.0230.04720.50
5.5.310.0430.07020.16
5.5.300.0070.04717.90
5.5.290.0000.04318.01
5.5.280.0100.08020.94
5.5.270.0130.03720.75
5.5.260.0030.04020.66
5.5.250.0100.06020.61
5.5.240.0070.07020.23
5.4.450.0170.05019.49
5.4.440.0230.04719.41
5.4.430.0130.05719.63
5.4.420.0100.06019.63
5.4.410.0100.05719.34
5.4.400.0200.04719.32
5.4.390.0130.05319.15
5.4.380.0330.05018.58
5.4.370.0130.06318.46
5.4.360.0200.05718.65
5.4.350.0400.05018.50
5.4.340.0230.05318.58
5.4.320.0040.03812.45
5.4.310.0050.04112.45
5.4.300.0090.03412.45
5.4.290.0080.04212.43
5.4.280.0080.05112.33
5.4.270.0100.05512.33
5.4.260.0110.05012.33
5.4.250.0090.05212.33
5.4.240.0100.04912.33
5.4.230.0090.05512.32
5.4.220.0090.05012.32
5.4.210.0050.03912.32
5.4.200.0090.03712.32
5.4.190.0040.04412.32
5.4.180.0080.03712.32
5.4.170.0060.03712.33
5.4.160.0030.04012.33
5.4.150.0040.03812.32
5.4.140.0080.03612.00
5.4.130.0060.03712.00
5.4.120.0130.05711.95
5.4.110.0110.07511.95
5.4.100.0110.06311.95
5.4.90.0160.05411.95
5.4.80.0100.05511.95
5.4.70.0080.04611.95
5.4.60.0100.03511.95
5.4.50.0080.04811.95
5.4.40.0190.04911.93
5.4.30.0080.04711.93
5.4.20.0060.04711.93
5.4.10.0200.08411.93
5.4.00.0060.03811.42
5.3.290.0080.04412.80
5.3.280.0080.04512.71
5.3.270.0100.03912.72
5.3.260.0110.06112.72
5.3.250.0190.07412.71
5.3.240.0080.05912.71
5.3.230.0090.05612.71
5.3.220.0120.07512.68
5.3.210.0070.06312.68
5.3.200.0100.05412.68
5.3.190.0120.04912.68
5.3.180.0100.04312.68
5.3.170.0110.06112.67
5.3.160.0100.07012.67
5.3.150.0080.07212.67
5.3.140.0120.05712.66
5.3.130.0060.06112.66
5.3.120.0100.05312.65
5.3.110.0100.05312.66
5.3.100.0100.05512.11
5.3.90.0130.05412.08
5.3.80.0090.05012.07
5.3.70.0060.07212.08
5.3.60.0070.05212.06
5.3.50.0090.04912.00
5.3.40.0130.06112.00
5.3.30.0160.07811.94
5.3.20.0200.12011.72
5.3.10.0150.05311.69
5.3.00.0110.04411.67
5.2.170.0070.0349.18
5.2.160.0080.0279.18
5.2.150.0080.0329.18
5.2.140.0070.0309.17
5.2.130.0090.0399.13
5.2.120.0080.0419.13
5.2.110.0030.0369.14
5.2.100.0040.0319.13
5.2.90.0060.0309.13
5.2.80.0060.0409.13
5.2.70.0060.0429.13
5.2.60.0080.0349.08
5.2.50.0180.0519.05
5.2.40.0070.0339.03
5.2.30.0040.0679.00
5.2.20.0060.0469.00
5.2.10.0080.0288.93
5.2.00.0110.0518.79
5.1.60.0150.0738.08
5.1.50.0050.0418.07
5.1.40.0100.0228.05
5.1.30.0060.0288.40
5.1.20.0100.0348.43
5.1.10.0050.0428.15
5.1.00.0090.0578.15
5.0.50.0230.0866.63
5.0.40.0060.0206.49
5.0.30.0060.0426.29
5.0.20.0060.0286.27
5.0.10.0170.0606.25
5.0.00.0130.0756.23
4.4.90.0140.0764.78
4.4.80.0080.0284.76
4.4.70.0060.0264.76
4.4.60.0060.0234.75
4.4.50.0120.0334.77
4.4.40.0130.0474.70
4.4.30.0070.0184.76
4.4.20.0060.0404.84
4.4.10.0180.0284.85
4.4.00.0070.0314.76
4.3.110.0080.0194.67
4.3.100.0080.0194.66
4.3.90.0060.0174.63
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0050.0154.63
4.3.40.0040.0254.54
4.3.30.0040.0153.29
4.3.20.0090.0343.27
4.3.10.0050.0243.22
4.3.00.0000.0237.30