3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function o($s) {echo $s;} if(false); { o("Always output"); }

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.0040.01116.57
7.3.00.0070.00716.63
7.2.130.0060.00616.57
7.2.120.0080.00816.70
7.2.110.0100.00716.95
7.2.100.0050.00516.52
7.2.90.0000.01416.63
7.2.80.0030.01016.73
7.2.70.0030.00716.75
7.2.60.0100.00516.73
7.2.50.0100.00016.83
7.2.40.0040.01516.85
7.2.30.0000.01416.87
7.2.20.0100.00716.74
7.2.10.0040.00716.42
7.2.00.0040.01117.92
7.1.250.0040.00915.39
7.1.200.0000.01015.74
7.1.100.0030.01018.12
7.1.70.0000.00816.92
7.1.60.0040.02219.46
7.1.50.0100.00716.79
7.1.00.0100.06722.45
7.0.200.0090.00616.70
7.0.140.0000.07722.15
7.0.60.0000.08720.09
7.0.50.0100.08317.97
7.0.40.0030.04720.30
7.0.30.0230.04020.30
7.0.20.0330.05020.07
7.0.10.0100.08020.15
7.0.00.0070.04320.09
5.6.280.0070.07021.03
5.6.210.0130.07020.54
5.6.200.0030.04318.21
5.6.190.0030.04320.46
5.6.180.0370.05320.63
5.6.170.0270.04320.41
5.6.160.0130.05720.61
5.6.150.0000.08318.12
5.6.140.0100.07018.14
5.6.130.0030.05718.13
5.6.120.0100.06021.02
5.6.110.0070.06720.99
5.6.100.0100.08021.00
5.6.90.0030.07021.04
5.6.80.0070.08020.47
5.5.350.0370.07020.38
5.5.340.0100.06718.09
5.5.330.0070.04020.19
5.5.320.0200.06020.33
5.5.310.0170.04320.30
5.5.300.0030.08717.95
5.5.290.0030.08317.92
5.5.280.0070.08020.62
5.5.270.0070.04320.79
5.5.260.0030.04720.79
5.5.250.0070.08720.70
5.5.240.0100.08020.27
5.4.450.0630.05719.61
5.4.440.0700.06019.71
5.4.430.0330.08019.47
5.4.420.0600.06319.49
5.4.410.0230.04319.35
5.4.400.0930.06719.33
5.4.390.0070.07019.04
5.4.380.0230.06718.75
5.4.370.0170.05318.78
5.4.360.0100.07318.74
5.4.350.0130.05318.75
5.4.340.0100.05318.58
5.4.320.0070.03512.50
5.4.310.0040.04012.50
5.4.300.0050.04512.50
5.4.290.0110.06312.50
5.4.280.0090.06112.40
5.4.270.0090.06212.39
5.4.260.0110.05912.40
5.4.250.0080.05912.40
5.4.240.0260.05912.40
5.4.230.0150.05012.39
5.4.220.0110.05512.39
5.4.210.0090.05212.39
5.4.200.0040.05912.39
5.4.190.0080.05212.39
5.4.180.0050.05512.39
5.4.170.0100.05012.40
5.4.160.0110.04712.39
5.4.150.0080.04912.39
5.4.140.0120.05012.07
5.4.130.0160.04512.06
5.4.120.0090.05112.02
5.4.110.0100.05612.01
5.4.100.0110.04712.01
5.4.90.0090.05312.01
5.4.80.0120.05012.01
5.4.70.0130.04612.01
5.4.60.0080.05212.01
5.4.50.0120.04812.01
5.4.40.0120.04712.00
5.4.30.0090.05012.00
5.4.20.0120.04611.99
5.4.10.0070.05011.99
5.4.00.0120.05811.48
5.3.290.0040.04112.80
5.3.280.0140.04812.71
5.3.270.0070.05812.72
5.3.260.0110.05312.72
5.3.250.0140.04812.71
5.3.240.0110.05112.72
5.3.230.0080.05312.71
5.3.220.0070.05612.68
5.3.210.0100.05412.68
5.3.200.0100.05212.68
5.3.190.0060.05612.68
5.3.180.0110.05212.68
5.3.170.0100.05312.67
5.3.160.0070.05612.68
5.3.150.0080.05712.68
5.3.140.0100.05412.66
5.3.130.0100.05612.66
5.3.120.0140.05212.66
5.3.110.0110.05812.66
5.3.100.0130.05112.12
5.3.90.0230.04912.10
5.3.80.0120.07812.09
5.3.70.0100.05412.08
5.3.60.0080.05512.07
5.3.50.0100.04712.02
5.3.40.0220.07012.01
5.3.30.0170.04811.98
5.3.20.0080.06411.76
5.3.10.0060.05311.73
5.3.00.0060.05611.71
5.2.170.0120.0739.20
5.2.160.0080.0419.21
5.2.150.0100.0419.21
5.2.140.0110.0389.21
5.2.130.0120.0489.16
5.2.120.0090.0379.16
5.2.110.0100.0369.18
5.2.100.0120.0359.17
5.2.90.0120.0559.17
5.2.80.0110.0379.16
5.2.70.0090.0429.17
5.2.60.0060.0439.12
5.2.50.0060.0439.08
5.2.40.0070.0399.07
5.2.30.0120.0399.04
5.2.20.0110.0389.04
5.2.10.0030.0368.94
5.2.00.0090.0398.80
5.1.60.0110.0348.07
5.1.50.0080.0298.07
5.1.40.0100.0338.05
5.1.30.0090.0428.41
5.1.20.0100.0408.43
5.1.10.0080.0398.15
5.1.00.0100.0368.16
5.0.50.0060.0296.63
5.0.40.0070.0286.49
5.0.30.0040.0426.30
5.0.20.0090.0286.28
5.0.10.0080.0566.25
5.0.00.0150.0706.25
4.4.90.0070.0234.78
4.4.80.0070.0254.76
4.4.70.0060.0264.75
4.4.60.0080.0244.75
4.4.50.0090.0244.77
4.4.40.0080.0344.71
4.4.30.0060.0234.76
4.4.20.0060.0244.84
4.4.10.0130.0384.85
4.4.00.0060.0334.76
4.3.110.0060.0234.67
4.3.100.0080.0254.67
4.3.90.0040.0224.64
4.3.80.0060.0314.58
4.3.70.0050.0224.63
4.3.60.0020.0244.63
4.3.50.0060.0224.63
4.3.40.0060.0304.53
4.3.30.0040.0243.29
4.3.20.0020.0243.27
4.3.10.0060.0213.24
4.3.00.0200.0309.38