3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ":Profash!~Ryan@profash.me PRIVMSG #tee !test 123 lol"; $input = explode(' ', $str); print_r array_slice($input, 3); print_r array_slice($input, 2);

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.80.0070.08020.50
5.5.240.0070.07320.25
5.4.400.0170.05318.81
5.4.390.0270.04318.52
5.4.380.0100.06018.63
5.4.370.0130.05718.56
5.4.360.0100.06018.59
5.4.350.0270.04718.81
5.4.340.0200.05018.79
5.4.320.0300.04318.48
5.4.310.0130.06018.75
5.4.300.0170.05318.69
5.4.290.0230.04718.57
5.4.280.0170.05718.61
5.4.270.0300.04318.73
5.4.260.0200.05318.77
5.4.250.0200.05018.52
5.4.240.0200.05318.55
5.4.230.0270.04318.62
5.4.220.0230.05018.83
5.4.210.0130.05718.70
5.4.200.0100.06016.63
5.4.190.0170.05018.68
5.4.180.0200.05318.56
5.4.170.0230.04718.70
5.4.160.0130.05718.79
5.4.150.0170.07018.70
5.4.140.0100.05716.27
5.4.130.0300.06016.28
5.4.120.0200.04316.32
5.4.110.0300.05716.27
5.4.100.0200.04716.26
5.4.90.0230.04716.28
5.4.80.0270.04716.23
5.4.70.0100.05716.39
5.4.60.0200.04716.27
5.4.50.0070.05716.22
5.4.40.0230.04316.40
5.4.30.0200.04716.25
5.4.20.0200.05016.13
5.4.10.0130.05316.19
5.4.00.0130.05015.77
5.3.290.0100.06014.76
5.3.280.0070.06314.57
5.3.270.0070.06714.52
5.3.260.0130.06314.71
5.3.250.0070.06314.66
5.3.240.0200.06014.71
5.3.230.0130.06714.70
5.3.220.0200.05314.46
5.3.210.0230.05314.48
5.3.200.0300.04314.48
5.3.190.0300.05014.46
5.3.180.0270.04714.65
5.3.170.0230.06314.50
5.3.160.0170.05314.57
5.3.150.0200.05714.64
5.3.140.0170.05314.56
5.3.130.0200.06314.53
5.3.120.0200.05014.64
5.3.110.0130.05714.44
5.3.100.0200.04714.01
5.3.90.0330.03313.96
5.3.80.0170.05313.93
5.3.70.0230.05314.00
5.3.60.0230.05713.95
5.3.50.0100.05713.85
5.3.40.0100.06313.85
5.3.30.0170.05013.89
5.3.20.0200.05013.77
5.3.10.0100.06013.58
5.3.00.0130.05313.55
5.2.170.0030.05011.12
5.2.160.0200.03311.04
5.2.150.0170.04711.08
5.2.140.0130.04011.05
5.2.130.0100.04311.07
5.2.120.0070.04711.14
5.2.110.0130.04311.13
5.2.100.0200.03311.14
5.2.90.0170.03711.14
5.2.80.0100.05011.23
5.2.70.0330.02311.10
5.2.60.0170.04010.95
5.2.50.0170.04311.02
5.2.40.0130.04011.03
5.2.30.0100.04711.05
5.2.20.0130.04010.99
5.2.10.0100.04011.00
5.2.00.0130.04710.70
5.1.60.0130.03310.11
5.1.50.0130.0379.93
5.1.40.0130.0309.98
5.1.30.0100.03710.34
5.1.20.0130.03710.35
5.1.10.0130.03310.12
5.1.00.0070.03710.13
5.0.50.0070.0308.61
5.0.40.0100.0238.48
5.0.30.0100.0408.24
5.0.20.0030.0308.23
5.0.10.0030.0308.27
5.0.00.0130.0378.29
4.4.90.0070.0235.82
4.4.80.0070.0205.81
4.4.70.0070.0205.90
4.4.60.0030.0335.82
4.4.50.0070.0205.89
4.4.40.0100.0335.93
4.4.30.0070.0205.81
4.4.20.0030.0235.91
4.4.10.0030.0235.88
4.4.00.0100.0305.93
4.3.110.0170.0105.82
4.3.100.0030.0235.80
4.3.90.0070.0235.82
4.3.80.0100.0305.90
4.3.70.0070.0205.82
4.3.60.0100.0205.78
4.3.50.0000.0275.78
4.3.40.0070.0335.78
4.3.30.0070.0204.62
4.3.20.0070.0204.51
4.3.10.0070.0204.50
4.3.00.0000.0237.11

preferences:
136.23 ms | 1398 KiB | 7 Q