3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'array[]'; $array = explode('[', $test); echo $array[0];
based on qcHCM

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.97
7.2.00.0030.00919.33
7.1.200.0040.00915.84
7.1.100.0030.01017.77
7.1.70.0070.00016.77
7.1.60.0070.01819.22
7.1.50.0040.01816.96
7.1.00.0030.05022.33
7.0.200.0000.00716.75
7.0.140.0000.06722.00
7.0.60.0070.06720.03
7.0.50.0030.08017.81
7.0.40.0030.04320.02
7.0.30.0300.08020.09
7.0.20.0370.07320.00
7.0.10.0000.04720.13
7.0.00.0030.08720.29
5.6.280.0100.06320.90
5.6.210.0130.07320.62
5.6.200.0030.06018.17
5.6.190.0070.05020.61
5.6.180.0230.04720.61
5.6.170.0230.04720.52
5.6.160.0100.08020.40
5.6.150.0100.07718.11
5.6.140.0100.04318.18
5.6.130.0030.05318.12
5.6.120.0170.07721.01
5.6.110.0070.06721.00
5.6.100.0030.08320.94
5.6.90.0130.07721.09
5.6.80.0070.08720.50
5.5.350.0200.05720.48
5.5.340.0100.04317.98
5.5.330.0100.06020.37
5.5.320.0270.07720.18
5.5.310.0300.07720.34
5.5.300.0100.07017.98
5.5.290.0130.08017.94
5.5.280.0030.06020.64
5.5.270.0130.08020.71
5.5.260.0070.05320.76
5.5.250.0100.08020.61
5.5.240.0000.06320.23
5.4.450.0630.06019.24
5.4.440.0630.05319.41
5.4.430.0570.05719.23
5.4.420.0130.05719.52
5.4.410.0070.06719.36
5.4.400.0130.05019.13
5.4.390.0070.05719.16
5.4.380.0200.05318.70
5.4.370.0170.05718.60
5.4.360.0270.04718.57
5.4.350.0370.04318.50
5.4.340.0300.04318.46
5.4.320.0330.04318.55
5.4.310.0200.05318.68
5.4.300.0270.04718.71
5.4.290.0200.05318.49
5.4.280.0300.04018.64
5.4.270.0130.05718.77
5.4.260.0170.06318.64
5.4.250.0230.05018.71
5.4.240.0330.04318.61
5.4.230.0230.05018.52
5.4.220.0300.04318.60
5.4.210.0070.06718.65
5.4.200.0200.05016.43
5.4.190.0170.05318.68
5.4.180.0300.04318.75
5.4.170.0200.05318.75
5.4.160.0230.05018.72
5.4.150.0170.05718.67
5.4.140.0170.05316.27
5.4.130.0130.05716.07
5.4.120.0230.04316.05
5.4.110.0230.04716.21
5.4.100.0300.04016.24
5.4.90.0170.05316.08
5.4.80.0170.05016.24
5.4.70.0370.05316.01
5.4.60.0230.04716.17
5.4.50.0270.04316.18
5.4.40.0170.05316.23
5.4.30.0330.04316.13
5.4.20.0270.04716.14
5.4.10.0170.05016.03
5.4.00.0200.05015.61
5.3.290.0170.05714.62
5.3.280.0130.05714.62
5.3.270.0170.05714.49
5.3.260.0070.06314.62
5.3.250.0130.05714.63
5.3.240.0200.05014.58
5.3.230.0270.04714.54
5.3.220.0230.06014.63
5.3.210.0200.05314.54
5.3.200.0230.06014.63
5.3.190.0270.06014.57
5.3.180.0300.06014.55
5.3.170.0300.04014.63
5.3.160.0170.05014.51
5.3.150.0130.05714.45
5.3.140.0130.05714.58
5.3.130.0170.06014.54
5.3.120.0200.05314.54
5.3.110.0170.06014.50
5.3.100.0170.05314.03
5.3.90.0230.05313.93
5.3.80.0130.05313.96
5.3.70.0270.04713.98
5.3.60.0300.04013.91
5.3.50.0300.05313.93
5.3.40.0230.04714.04
5.3.30.0300.04713.85
5.3.20.0270.04013.60
5.3.10.0170.04713.64
5.3.00.0200.05013.55
5.2.170.0100.04711.05
5.2.160.0130.04311.18
5.2.150.0170.05711.20
5.2.140.0130.04311.29
5.2.130.0170.04011.08
5.2.120.0200.03711.15
5.2.110.0130.04311.23
5.2.100.0200.05311.25
5.2.90.0130.04011.23
5.2.80.0170.04011.08
5.2.70.0230.05011.13
5.2.60.0170.04311.04
5.2.50.0200.03711.05
5.2.40.0130.04011.14
5.2.30.0130.04310.96
5.2.20.0170.03711.09
5.2.10.0170.03310.90
5.2.00.0100.04310.80
5.1.60.0130.03310.10
5.1.50.0170.03310.02
5.1.40.0200.02710.01
5.1.30.0170.03310.32
5.1.20.0070.04010.38
5.1.10.0100.03710.11
5.1.00.0100.03710.18
5.0.50.0070.0308.56
5.0.40.0030.0308.50
5.0.30.0070.0438.23
5.0.20.0030.0308.23
5.0.10.0030.0308.36
5.0.00.0070.0438.18
4.4.90.0000.0305.88
4.4.80.0100.0175.84
4.4.70.0030.0235.86
4.4.60.0070.0205.90
4.4.50.0070.0205.82
4.4.40.0070.0335.90
4.4.30.0030.0275.91
4.4.20.0070.0235.98
4.4.10.0070.0205.92
4.4.00.0070.0335.89
4.3.110.0070.0205.83
4.3.100.0070.0205.83
4.3.90.0030.0235.82
4.3.80.0130.0275.84
4.3.70.0070.0235.90
4.3.60.0030.0235.77
4.3.50.0030.0275.79
4.3.40.0030.0375.77
4.3.30.0030.0235.01
4.3.20.0000.0275.01
4.3.10.0070.0205.01
4.3.00.0030.0307.27