3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((int)'12 ');

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.0040.00819.20
7.1.100.0120.00318.28
7.1.70.0030.00517.07
7.1.60.0150.00419.70
7.1.50.0070.01716.56
7.1.00.0030.07322.46
7.0.200.0000.00716.61
7.0.140.0030.07022.12
7.0.60.0100.08019.91
7.0.50.0100.03317.89
7.0.40.0030.04320.02
7.0.30.0100.05320.17
7.0.20.0300.05020.16
7.0.10.0030.04320.04
7.0.00.0070.08020.03
5.6.210.0100.08020.76
5.6.200.0070.08018.08
5.6.190.0070.08320.35
5.6.180.0070.08720.32
5.6.170.0330.05720.47
5.6.160.0130.07720.44
5.6.150.0100.05318.21
5.6.140.0100.05018.12
5.6.130.0030.05018.14
5.6.120.0030.05320.97
5.6.110.0070.08320.97
5.6.100.0100.08021.03
5.6.90.0030.05320.99
5.6.80.0070.04320.43
5.5.350.0230.04020.41
5.5.340.0100.07317.92
5.5.330.0000.04320.43
5.5.320.0270.04320.13
5.5.310.0330.07720.41
5.5.300.0070.08017.91
5.5.290.0130.07318.02
5.5.280.0030.06720.89
5.5.270.0130.03720.86
5.5.260.0030.05020.86
5.5.250.0100.03720.64
5.5.240.0230.06320.18
5.4.450.0270.04031.21
5.4.440.0630.04731.20
5.4.430.0470.04331.20
5.4.420.0300.04331.20
5.4.410.0470.04331.20
5.4.400.0300.03331.20
5.4.390.0430.04331.20
5.4.380.0200.04718.70
5.4.370.0100.05318.66
5.4.360.0170.04718.68
5.4.350.0170.05018.60
5.4.340.0130.05018.49
5.4.320.0040.04512.45
5.4.310.0060.04112.45
5.4.300.0090.04712.45
5.4.290.0080.05112.45
5.4.280.0060.05112.34
5.4.270.0100.04812.34
5.4.260.0090.05012.34
5.4.250.0070.04812.34
5.4.240.0090.03612.35
5.4.230.0050.04012.34
5.4.220.0050.03912.34
5.4.210.0050.03912.34
5.4.200.0050.04012.34
5.4.190.0090.04412.33
5.4.180.0090.03312.34
5.4.170.0080.03512.35
5.4.160.0070.03612.34
5.4.150.0070.03512.34
5.4.140.0040.05112.02
5.4.130.0070.03512.01
5.4.120.0080.03311.96
5.4.110.0040.03811.96
5.4.100.0070.03511.96
5.4.90.0040.03911.96
5.4.80.0040.04111.96
5.4.70.0050.03911.96
5.4.60.0070.03711.96
5.4.50.0070.03811.96
5.4.40.0070.03711.95
5.4.30.0060.03911.95
5.4.20.0070.03511.95
5.4.10.0040.03711.95
5.4.00.0060.03811.44
5.3.290.0090.03812.80
5.3.280.0060.04012.71
5.3.270.0050.04212.72
5.3.260.0070.04412.72
5.3.250.0050.04612.72
5.3.240.0080.03812.71
5.3.230.0080.03512.71
5.3.220.0040.03812.68
5.3.210.0070.03712.68
5.3.200.0080.03812.68
5.3.190.0050.04212.68
5.3.180.0050.04012.67
5.3.170.0070.03712.67
5.3.160.0060.03912.67
5.3.150.0110.03512.67
5.3.140.0060.04812.66
5.3.130.0060.04612.66
5.3.120.0110.05812.65
5.3.110.0180.05412.66
5.3.100.0140.05112.12
5.3.90.0090.05212.08
5.3.80.0060.03912.08
5.3.70.0080.03512.07
5.3.60.0050.04012.06
5.3.50.0060.03812.00
5.3.40.0050.03812.00
5.3.30.0090.03211.94
5.3.20.0060.03611.72
5.3.10.0050.03811.68
5.3.00.0060.03711.67
5.2.170.0070.0309.17
5.2.160.0080.0289.17
5.2.150.0050.0329.17
5.2.140.0110.0269.17
5.2.130.0050.0319.13
5.2.120.0060.0329.13
5.2.110.0110.0379.14
5.2.100.0020.0399.14
5.2.90.0070.0369.14
5.2.80.0050.0379.13
5.2.70.0050.0389.13
5.2.60.0130.0569.08
5.2.50.0070.0409.05
5.2.40.0080.0369.03
5.2.30.0060.0329.01
5.2.20.0060.0309.00
5.2.10.0030.0338.91
5.2.00.0030.0348.77
5.1.60.0080.0228.05
5.1.50.0080.0238.05
5.1.40.0050.0258.04
5.1.30.0050.0288.39
5.1.20.0060.0288.41
5.1.10.0080.0408.13
5.1.00.0050.0328.13
5.0.50.0080.0216.61
5.0.40.0070.0236.47
5.0.30.0060.0376.29
5.0.20.0060.0216.25
5.0.10.0050.0216.23
5.0.00.0050.0316.23
4.4.90.0050.0214.78
4.4.80.0040.0214.76
4.4.70.0050.0194.75
4.4.60.0030.0184.76
4.4.50.0050.0204.77
4.4.40.0030.0334.71
4.4.30.0030.0174.76
4.4.20.0030.0184.85
4.4.10.0030.0174.85
4.4.00.0040.0264.76
4.3.110.0020.0184.67
4.3.100.0050.0164.66
4.3.90.0050.0144.63
4.3.80.0050.0234.59
4.3.70.0050.0144.63
4.3.60.0020.0184.62
4.3.50.0040.0164.62
4.3.40.0060.0284.54
4.3.30.0050.0223.28
4.3.20.0050.0363.25
4.3.10.0040.0193.21
4.3.00.0070.01332.00