3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (false) { echo "wtf"; }
based on S2YqS

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.60.0060.00916.67
7.2.00.0000.01219.20
7.1.200.0030.00915.38
7.1.100.0060.00617.74
7.1.70.0030.00617.06
7.1.60.0100.01319.32
7.1.50.0070.01316.82
7.1.00.0100.07022.52
7.0.200.0000.00916.81
7.0.140.0070.06722.07
7.0.60.0130.07719.86
7.0.50.0070.08017.66
7.0.40.0000.06019.90
7.0.30.0230.08020.04
7.0.20.0230.04320.00
7.0.10.0070.04020.12
7.0.00.0030.06720.32
5.6.280.0070.07021.04
5.6.210.0030.04020.55
5.6.200.0100.03718.11
5.6.190.0130.04720.27
5.6.180.0330.04020.40
5.6.170.0330.07020.41
5.6.160.0100.08320.70
5.6.150.0130.07018.11
5.6.140.0070.03718.18
5.6.130.0070.08718.18
5.6.120.0070.08320.89
5.6.110.0070.08020.96
5.6.100.0000.08321.10
5.6.90.0070.08021.03
5.6.80.0070.06320.40
5.5.350.0230.07020.31
5.5.340.0070.03717.98
5.5.330.0100.08020.40
5.5.320.0470.06320.26
5.5.310.0370.06720.24
5.5.300.0200.06317.92
5.5.290.0030.06318.05
5.5.280.0100.07320.79
5.5.270.0070.05320.81
5.5.260.0200.06720.68
5.5.250.0100.06320.77
5.5.240.0100.07020.36
5.4.450.0130.04019.10
5.4.440.1070.06019.55
5.4.430.0970.07019.13
5.4.420.0630.00019.25
5.4.410.0630.00019.39
5.4.400.0600.00019.06
5.4.390.0630.00019.00
5.4.380.0330.06318.50
5.4.370.0330.04718.46
5.4.360.0400.04718.49
5.4.350.0270.06018.62
5.4.340.0400.05718.69
5.4.320.0060.03612.45
5.4.310.0060.04412.45
5.4.300.0040.03912.45
5.4.290.0080.03812.45
5.4.280.0050.03612.35
5.4.270.0050.03812.34
5.4.260.0060.03912.34
5.4.250.0060.03712.34
5.4.240.0060.03512.35
5.4.230.0090.03412.34
5.4.220.0080.03412.34
5.4.210.0060.03712.34
5.4.200.0070.03612.34
5.4.190.0060.03612.34
5.4.180.0060.04112.34
5.4.170.0060.03912.35
5.4.160.0090.03712.34
5.4.150.0070.04512.34
5.4.140.0070.05412.02
5.4.130.0100.03312.01
5.4.120.0080.03511.96
5.4.110.0050.03611.96
5.4.100.0050.03711.96
5.4.90.0050.03811.96
5.4.80.0050.03911.96
5.4.70.0050.03711.96
5.4.60.0040.03711.96
5.4.50.0090.03311.96
5.4.40.0060.03711.95
5.4.30.0080.03411.95
5.4.20.0060.03611.94
5.4.10.0090.03311.95
5.4.00.0060.03711.43
5.3.290.0050.04112.80
5.3.280.0060.03712.71
5.3.270.0070.04112.72
5.3.260.0050.04012.72
5.3.250.0120.04312.72
5.3.240.0050.03712.72
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0050.04012.68
5.3.200.0060.03612.68
5.3.190.0070.03712.68
5.3.180.0070.04012.67
5.3.170.0030.04112.67
5.3.160.0060.03712.68
5.3.150.0060.03712.68
5.3.140.0050.03812.66
5.3.130.0060.04512.66
5.3.120.0080.03812.66
5.3.110.0060.03912.66
5.3.100.0070.03512.12
5.3.90.0080.03412.08
5.3.80.0060.03612.07
5.3.70.0080.03312.07
5.3.60.0090.03212.06
5.3.50.0080.03612.00
5.3.40.0080.03712.00
5.3.30.0050.03511.94
5.3.20.0050.04511.72
5.3.10.0070.03411.68
5.3.00.0110.03111.67
5.2.170.0060.0289.17
5.2.160.0060.0279.17
5.2.150.0050.0299.18
5.2.140.0040.0359.16
5.2.130.0020.0309.13
5.2.120.0030.0309.13
5.2.110.0070.0359.14
5.2.100.0060.0299.13
5.2.90.0030.0309.13
5.2.80.0020.0359.13
5.2.70.0020.0329.13
5.2.60.0070.0339.08
5.2.50.0030.0329.05
5.2.40.0060.0289.03
5.2.30.0040.0309.01
5.2.20.0050.0278.99
5.2.10.0040.0288.92
5.2.00.0040.0318.77
5.1.60.0030.0258.05
5.1.50.0020.0278.05
5.1.40.0050.0258.04
5.1.30.0030.0278.39
5.1.20.0070.0238.41
5.1.10.0040.0318.13
5.1.00.0040.0258.13
5.0.50.0040.0196.61
5.0.40.0040.0186.47
5.0.30.0010.0336.28
5.0.20.0020.0216.25
5.0.10.0020.0216.23
5.0.00.0030.0356.23
4.4.90.0040.0134.78
4.4.80.0040.0184.75
4.4.70.0010.0174.75
4.4.60.0040.0164.75
4.4.50.0010.0214.77
4.4.40.0030.0254.71
4.4.30.0070.0144.76
4.4.20.0010.0174.84
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0144.67
4.3.90.0020.0214.64
4.3.80.0020.0254.59
4.3.70.0020.0214.63
4.3.60.0030.0144.63
4.3.50.0040.0194.63
4.3.40.0020.0244.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0000.0173.21
4.3.00.0000.01715.62