3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "123, 234"; foreach(explode(",", $str) as $other) { echo trim($other)."\n"; } ?>
based on bbX2Z

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.0030.01519.14
7.1.100.0660.00915.10
7.1.70.0000.00717.14
7.1.60.0110.01419.32
7.1.50.0060.01616.98
7.1.00.0000.08022.26
7.0.200.0000.00716.85
7.0.140.0100.06022.08
7.0.60.0170.07720.03
7.0.50.0070.07017.85
7.0.40.0070.06320.30
7.0.30.0400.07720.23
7.0.20.0170.04720.19
7.0.10.0130.08320.17
7.0.00.0070.05020.20
5.6.280.0030.07020.97
5.6.210.0000.08320.51
5.6.200.0130.03318.17
5.6.190.0000.04720.67
5.6.180.0330.08320.61
5.6.170.0470.06320.41
5.6.160.0100.08020.48
5.6.150.0030.05318.15
5.6.140.0100.05018.18
5.6.130.0070.08318.19
5.6.120.0070.04020.89
5.6.110.0100.04021.09
5.6.100.0000.08721.10
5.6.90.0100.08721.09
5.6.80.0100.07320.41
5.5.350.0070.06020.49
5.5.340.0070.08317.95
5.5.330.0030.04320.23
5.5.320.0500.06720.17
5.5.310.0330.05320.28
5.5.300.0000.05717.91
5.5.290.0170.07717.97
5.5.280.0030.04720.84
5.5.270.0000.05020.82
5.5.260.0170.06020.86
5.5.250.0000.04320.58
5.5.240.0170.05020.18
5.4.450.0730.05719.61
5.4.440.0700.05719.55
5.4.430.0400.04719.29
5.4.420.0700.00019.32
5.4.410.0670.00019.23
5.4.400.0600.00019.03
5.4.390.0630.00018.98
5.4.380.0630.00019.09
5.4.370.0630.00019.20
5.4.360.0670.00018.93
5.4.350.0670.00019.16
5.4.340.0070.03411.97
5.4.320.0070.03612.45
5.4.310.0120.03712.45
5.4.300.0060.05212.46
5.4.290.0050.03812.46
5.4.280.0050.03612.35
5.4.270.0090.03412.35
5.4.260.0060.03712.35
5.4.250.0130.04912.35
5.4.240.0060.05412.35
5.4.230.0060.04112.34
5.4.220.0070.03612.34
5.4.210.0050.03612.34
5.4.200.0110.03412.34
5.4.190.0050.03712.34
5.4.180.0070.03712.34
5.4.170.0080.03612.35
5.4.160.0050.03812.34
5.4.150.0070.03612.34
5.4.140.0070.03612.02
5.4.130.0070.03512.02
5.4.120.0090.03411.97
5.4.110.0070.03611.96
5.4.100.0090.04211.97
5.4.90.0030.04111.97
5.4.80.0050.04511.97
5.4.70.0110.03511.96
5.4.60.0060.03811.96
5.4.50.0110.03211.96
5.4.40.0040.04711.95
5.4.30.0070.04011.95
5.4.20.0100.04311.95
5.4.10.0070.04211.95
5.4.00.0060.04111.44
5.3.290.0050.04312.80
5.3.280.0040.03912.70
5.3.270.0050.04012.72
5.3.260.0050.04012.72
5.3.250.0060.03612.72
5.3.240.0080.03412.72
5.3.230.0060.03712.71
5.3.220.0070.03512.68
5.3.210.0060.03812.68
5.3.200.0070.03512.68
5.3.190.0060.03712.68
5.3.180.0080.03612.67
5.3.170.0060.03612.67
5.3.160.0090.03412.67
5.3.150.0100.03512.67
5.3.140.0090.03312.66
5.3.130.0050.04712.65
5.3.120.0120.04112.66
5.3.110.0070.04412.65
5.3.100.0070.03712.12
5.3.90.0070.04212.09
5.3.80.0060.03712.08
5.3.70.0070.03512.07
5.3.60.0070.03612.07
5.3.50.0050.03712.00
5.3.40.0060.03612.00
5.3.30.0050.03611.94
5.3.20.0060.03511.72
5.3.10.0070.04111.69
5.3.00.0070.03411.68
5.2.170.0030.0329.18
5.2.160.0080.0269.18
5.2.150.0060.0309.18
5.2.140.0080.0279.17
5.2.130.0050.0329.13
5.2.120.0040.0289.14
5.2.110.0020.0329.14
5.2.100.0080.0259.14
5.2.90.0060.0329.14
5.2.80.0040.0319.14
5.2.70.0020.0339.13
5.2.60.0020.0339.09
5.2.50.0050.0299.05
5.2.40.0060.0339.03
5.2.30.0040.0309.01
5.2.20.0090.0279.00
5.2.10.0060.0288.92
5.2.00.0080.0298.78
5.1.60.0050.0238.06
5.1.50.0040.0248.06
5.1.40.0020.0268.04
5.1.30.0020.0288.39
5.1.20.0050.0278.41
5.1.10.0080.0238.14
5.1.00.0040.0268.14
5.0.50.0030.0246.61
5.0.40.0070.0176.47
5.0.30.0030.0316.29
5.0.20.0020.0216.26
5.0.10.0030.0206.24
5.0.00.0050.0396.23
4.4.90.0070.0134.77
4.4.80.0000.0184.75
4.4.70.0060.0164.75
4.4.60.0030.0154.75
4.4.50.0030.0224.77
4.4.40.0020.0254.71
4.4.30.0050.0154.76
4.4.20.0030.0224.84
4.4.10.0040.0194.84
4.4.00.0040.0304.76
4.3.110.0050.0134.67
4.3.100.0030.0154.67
4.3.90.0030.0144.64
4.3.80.0040.0234.59
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0030.0164.63
4.3.40.0030.0234.54
4.3.30.0040.0163.28
4.3.20.0010.0183.26
4.3.10.0010.0163.22
4.3.00.0030.0237.18