3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'aaa,test'; $locations = explode(',', $test); var_dump($locations); var_dump(array_shift($locations));
based on pjKk4

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.0120.00916.33
7.3.00.0100.00716.26
7.2.130.0030.01016.60
7.2.120.0070.00416.62
7.2.110.0060.01216.36
7.2.100.0110.00716.36
7.2.90.0080.00816.46
7.2.80.0040.01216.76
7.2.70.0110.00616.46
7.2.60.0050.00916.46
7.2.50.0110.00316.70
7.2.40.0040.01116.25
7.2.30.0080.00416.28
7.2.20.0110.00516.39
7.2.10.0140.00716.59
7.2.00.0100.00818.12
7.1.250.0070.00715.59
7.1.200.0040.00715.77
7.1.100.0000.01517.86
7.1.70.0000.01016.89
7.1.60.0110.01419.50
7.1.50.0110.01116.52
7.1.00.0030.07722.40
7.0.200.0030.00614.47
7.0.140.0070.06722.15
7.0.60.0030.07019.93
7.0.50.0200.06317.70
7.0.40.0130.08020.23
7.0.30.0300.04020.30
7.0.20.0230.04020.17
7.0.10.0270.07020.04
7.0.00.0030.08720.12
5.6.280.0100.06321.12
5.6.210.0030.04020.50
5.6.200.0100.08318.11
5.6.190.0200.07020.27
5.6.180.0330.04720.58
5.6.170.0300.05020.64
5.6.160.0100.04020.37
5.6.150.0170.07318.14
5.6.140.0130.04318.17
5.6.130.0070.05318.11
5.6.120.0100.08321.01
5.6.110.0000.08320.90
5.6.100.0200.05021.02
5.6.90.0200.07021.09
5.6.80.0170.06020.34
5.6.70.0270.07020.36
5.5.350.0200.03320.41
5.5.340.0100.07717.92
5.5.330.0070.08020.25
5.5.320.0300.07720.37
5.5.310.0200.04020.16
5.5.300.0000.04017.93
5.5.290.0030.04017.89
5.5.280.0070.05320.87
5.5.270.0170.05720.86
5.5.260.0130.07320.88
5.5.250.0170.07720.74
5.5.240.0170.03020.23
5.4.450.0370.05019.61
5.4.440.0170.05019.58
5.4.430.0100.06019.63
5.4.420.0970.05019.42
5.4.410.0100.07718.85
5.4.400.1230.05318.78
5.4.390.1170.05718.72
5.4.380.1100.05718.59
5.4.370.0970.04718.56
5.4.360.1170.05318.57
5.4.350.1000.06718.50
5.4.340.1370.06718.63
5.4.320.1130.06018.43
5.4.310.1430.04018.64
5.4.300.1200.05718.71
5.4.290.1200.05718.73
5.4.280.1070.05318.71
5.4.270.1330.05318.73
5.4.260.1170.06018.49
5.4.250.1000.05318.52
5.4.240.1130.05718.62
5.4.230.1030.05018.70
5.4.220.1200.05018.55
5.4.210.1330.04718.67
5.4.200.0600.05716.55
5.4.190.0070.06018.66
5.4.180.0700.05318.57
5.4.170.1330.06318.63
5.4.160.1270.05018.55
5.4.150.1330.05718.57
5.4.140.1130.04716.09
5.4.130.1170.07016.05
5.4.120.0830.06016.25
5.4.110.1170.04316.08
5.4.100.1630.06316.20
5.4.90.1230.05316.30
5.4.80.1230.05016.30
5.4.70.1300.06716.13
5.4.60.1830.06716.09
5.4.50.1670.06016.21
5.4.40.1500.05316.27
5.4.30.0970.06316.21
5.4.20.1330.05016.16
5.4.10.1230.05316.27
5.4.00.1070.05015.77
5.3.290.1030.06714.73
5.3.280.0830.05314.52
5.3.270.0230.05314.61
5.3.260.0900.06014.68
5.3.250.1730.06714.56
5.3.240.1470.07014.63
5.3.230.1570.06714.60
5.3.220.1530.06714.51
5.3.210.1500.05714.65
5.3.200.1500.07314.56
5.3.190.1470.06314.51
5.3.180.1330.07014.65
5.3.170.1630.07314.47
5.3.160.1600.05714.54
5.3.150.1400.06014.57
5.3.140.1670.06314.46
5.3.130.1600.06714.55
5.3.120.1300.06714.45
5.3.110.1300.06714.63
5.3.100.1500.07314.00
5.3.90.1670.06314.02
5.3.80.1430.05014.01
5.3.70.1300.06713.98
5.3.60.1300.04713.89
5.3.50.0130.04713.98
5.3.40.0030.06013.89
5.3.30.1070.05013.98
5.3.20.1170.05713.79
5.3.10.1400.04313.75
5.3.00.1270.05713.66
5.2.170.0900.05311.09
5.2.160.0930.04311.13
5.2.150.0830.04311.07
5.2.140.0970.04311.11
5.2.130.1070.03711.25
5.2.120.0900.04711.07
5.2.110.1070.04311.14
5.2.100.1100.04711.05
5.2.90.0730.05011.06
5.2.80.0870.04011.24
5.2.70.1030.06011.10
5.2.60.1000.05011.10
5.2.50.0370.03710.96
5.2.40.0330.04011.05
5.2.30.0200.06310.94
5.2.20.0270.05010.91
5.2.10.0200.04710.90
5.2.00.0300.04710.77
5.1.60.0300.03310.13
5.1.50.0430.03710.02
5.1.40.0370.0439.92
5.1.30.0370.04310.37
5.1.20.0300.05010.36
5.1.10.0470.04310.18
5.1.00.0400.04010.13
5.0.50.0100.0338.54
5.0.40.0130.0338.38
5.0.30.0170.0478.32
5.0.20.0170.0378.39
5.0.10.0130.0408.14
5.0.00.0170.0438.22
4.4.90.0170.0205.93
4.4.80.0200.0205.89
4.4.70.0070.0275.90
4.4.60.0130.0235.86
4.4.50.0100.0205.92
4.4.40.0170.0305.91
4.4.30.0130.0205.91
4.4.20.0200.0235.96
4.4.10.0100.0275.93
4.4.00.0170.0435.93
4.3.110.0200.0305.86
4.3.100.0070.0305.75
4.3.90.0100.0335.80
4.3.80.0170.0435.79
4.3.70.0130.0305.86
4.3.60.0200.0235.80
4.3.50.0070.0305.84
4.3.40.0170.0435.78
4.3.30.0100.0204.59
4.3.20.0100.0204.52
4.3.10.0130.0204.48
4.3.00.0070.0276.88