3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "0 16 18 9 22 1 3 25 12 19 20"; $chr = explode(" ", $str); foreach($chr as $c) { print chr(65 + (int) $c); }

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.0110.00316.91
7.2.00.0030.01319.15
7.1.200.0100.00315.81
7.1.100.0000.01418.03
7.1.70.0000.00817.09
7.1.60.0030.02119.29
7.1.50.0140.01416.92
7.1.00.0030.07722.46
7.0.200.0100.00716.47
7.0.140.0000.07722.01
7.0.60.0030.07319.93
7.0.50.0130.07017.88
7.0.40.0070.07020.40
7.0.30.0370.06720.02
7.0.20.0230.03320.00
7.0.10.0200.07020.33
7.0.00.0000.04720.11
5.6.280.0030.07320.76
5.6.210.0100.08020.72
5.6.200.0170.07018.10
5.6.190.0030.09320.43
5.6.180.0230.07020.41
5.6.170.0200.07020.62
5.6.160.0070.05020.40
5.6.150.0000.09018.07
5.6.140.0100.03318.11
5.6.130.0030.08718.12
5.6.120.0100.08021.14
5.6.110.0070.07321.17
5.6.100.0100.06321.11
5.6.90.0070.08020.96
5.6.80.0070.08020.53
5.5.350.0100.07020.31
5.5.340.0070.03717.94
5.5.330.0230.04320.37
5.5.320.0270.05320.26
5.5.310.0300.07020.24
5.5.300.0070.08318.00
5.5.290.0100.07017.95
5.5.280.0070.04020.73
5.5.270.0030.08720.67
5.5.260.0170.07320.64
5.5.250.0130.07720.57
5.5.240.4300.04720.36
5.4.450.0570.03319.09
5.4.440.0200.05319.32
5.4.430.0270.07319.48
5.4.420.0700.06719.23
5.4.410.0030.06018.97
5.4.400.0130.05018.70
5.4.390.0230.04718.72
5.4.380.0130.06318.68
5.4.370.0200.04718.68
5.4.360.0200.04718.68
5.4.350.0130.06718.72
5.4.340.0270.06718.63
5.4.320.0060.03712.45
5.4.310.0050.04112.45
5.4.300.0070.03912.46
5.4.290.0060.04212.46
5.4.280.0110.07812.32
5.4.270.0110.07812.32
5.4.260.0130.09012.32
5.4.250.0150.07212.32
5.4.240.0090.08412.32
5.4.230.0140.05612.31
5.4.220.0100.07312.32
5.4.210.0380.08212.32
5.4.200.0150.08812.31
5.4.190.0100.06312.31
5.4.180.0100.04512.31
5.4.170.0070.04212.32
5.4.160.0080.03912.32
5.4.150.0100.04912.32
5.4.140.0130.06312.00
5.4.130.0090.03811.98
5.4.120.0070.04311.94
5.4.110.0130.05311.94
5.4.100.0080.04411.94
5.4.90.0070.03911.94
5.4.80.0160.04111.94
5.4.70.0170.03311.94
5.4.60.0110.03311.94
5.4.50.0070.03911.93
5.4.40.0070.04011.93
5.4.30.0160.03411.92
5.4.20.0090.04111.93
5.4.10.0080.04911.93
5.4.00.0080.04611.41
5.3.290.0050.03912.80
5.3.280.0110.04812.71
5.3.270.0060.04412.72
5.3.260.0060.04312.72
5.3.250.0090.04912.72
5.3.240.0080.03912.72
5.3.230.0070.04212.71
5.3.220.0100.03612.68
5.3.210.0100.04712.68
5.3.200.0110.03512.68
5.3.190.0060.04212.68
5.3.180.0080.03912.67
5.3.170.0110.04012.67
5.3.160.0090.05612.67
5.3.150.0110.05512.68
5.3.140.0120.03812.66
5.3.130.0070.04512.65
5.3.120.0100.04312.66
5.3.110.0160.03612.66
5.3.100.0050.04512.12
5.3.90.0140.05412.09
5.3.80.0140.04112.07
5.3.70.0330.10012.07
5.3.60.0120.04912.06
5.3.50.0090.04912.00
5.3.40.0170.09012.00
5.3.30.0090.06211.94
5.3.20.0120.05411.70
5.3.10.0200.07811.67
5.3.00.0240.10411.66
5.2.170.0090.0589.15
5.2.160.0210.0829.15
5.2.150.0150.0529.15
5.2.140.0160.0669.14
5.2.130.0140.0669.11
5.2.120.0080.0719.11
5.2.110.0230.0779.11
5.2.100.0120.0499.11
5.2.90.0150.0469.11
5.2.80.0120.0599.11
5.2.70.0110.0419.11
5.2.60.0190.1059.06
5.2.50.0130.0689.03
5.2.40.0090.0749.00
5.2.30.0120.0688.98
5.2.20.0130.0748.97
5.2.10.0130.0798.90
5.2.00.0130.0588.76
5.1.60.0110.0568.05
5.1.50.0160.0448.05
5.1.40.0140.0548.03
5.1.30.0110.0658.38
5.1.20.0080.0458.40
5.1.10.0160.0798.13
5.1.00.0150.0658.13
5.0.50.0090.0306.60
5.0.40.0080.0326.46
5.0.30.0080.0656.27
5.0.20.0080.0256.25
5.0.10.0040.0326.22
5.0.00.0030.0596.21
4.4.90.0060.0474.78
4.4.80.0140.0424.76
4.4.70.0100.0394.75
4.4.60.0170.0394.76
4.4.50.0130.0414.77
4.4.40.0080.0344.71
4.4.30.0090.0364.75
4.4.20.0170.0824.85
4.4.10.0070.0504.84
4.4.00.0000.0804.76
4.3.110.0040.0254.67
4.3.100.0020.0234.66
4.3.90.0020.0264.63
4.3.80.0050.0434.58
4.3.70.0070.0404.63
4.3.60.0040.0504.63
4.3.50.0030.0254.63
4.3.40.0070.0454.53
4.3.30.0040.0473.27
4.3.20.0090.0393.25
4.3.10.0140.0343.22
4.3.00.0030.01313.64