3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string 'turd, , hello'; print_r(array_filter(explode($string)));

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.4.310.0300.06319.21
5.4.300.0170.04718.95
5.4.290.0230.04019.08
5.4.280.0300.04319.12
5.4.270.0300.04719.10
5.4.260.0300.04319.09
5.4.250.0270.04319.04
5.4.240.0270.04319.16
5.4.230.0170.05719.12
5.4.220.0070.06018.94
5.4.210.0230.06318.99
5.4.200.0170.08018.83
5.4.190.0200.04319.08
5.4.180.0230.04319.22
5.4.170.0170.04719.18
5.4.160.0330.07019.20
5.4.150.0230.04019.17
5.4.140.0230.04316.46
5.4.130.0230.04316.51
5.4.120.0200.04016.45
5.4.110.0200.07316.51
5.4.100.0200.03716.25
5.4.90.0170.05016.45
5.4.80.0200.04716.34
5.4.70.0270.07016.44
5.4.60.0200.04016.43
5.4.50.0170.05316.52
5.4.40.0300.05016.51
5.4.30.0270.03316.50
5.4.20.0170.04016.50
5.4.10.0170.04316.53
5.4.00.0130.07715.76
5.3.280.0200.04314.57
5.3.270.0200.07314.55
5.3.260.0230.04014.46
5.3.250.0200.03314.59
5.3.240.0230.04014.46
5.3.230.0170.03714.43
5.3.220.0200.03314.43
5.3.210.0270.03714.41
5.3.200.0130.04714.41
5.3.190.0200.03714.44
5.3.180.0170.04314.40
5.3.170.0230.04014.52
5.3.160.0170.07314.40
5.3.150.0230.05714.50
5.3.140.0170.04714.41
5.3.130.0200.07314.39
5.3.120.0200.04314.57
5.3.110.0270.04014.55
5.3.100.0330.06713.98
5.3.90.0200.04314.11
5.3.80.0230.05313.84
5.3.70.0200.04713.84
5.3.60.0100.04313.85
5.3.50.0300.07013.85
5.3.40.0330.03313.72
5.3.30.0230.03013.86
5.3.20.0230.06713.63
5.3.10.0170.03313.51
5.3.00.0270.06713.51
5.2.170.0170.03010.98
5.2.160.0100.04310.98
5.2.150.0230.05710.98
5.2.140.0170.03311.00
5.2.130.0130.06311.04
5.2.120.0100.03311.11
5.2.110.0170.02711.01
5.2.100.0200.05711.04
5.2.90.0170.05010.96
5.2.80.0170.03011.00
5.2.70.0130.03011.12
5.2.60.0200.05311.13
5.2.50.0130.03010.87
5.2.40.0170.02711.14
5.2.30.0100.04010.83
5.2.20.0100.03710.84
5.2.10.0130.03010.77
5.2.00.0370.03010.66
5.1.60.0100.03010.12
5.1.50.0130.0279.89
5.1.40.0230.04010.06
5.1.30.0100.02710.27
5.1.20.0130.02310.53
5.1.10.0130.02310.14
5.1.00.0130.02310.00
5.0.50.0070.0208.70
5.0.40.0030.0208.53
5.0.30.0100.0278.27
5.0.20.0070.0278.18
5.0.10.0070.0208.09
5.0.00.0070.0678.10
4.4.90.0100.0108.04
4.4.80.0070.0238.04
4.4.70.0030.0178.04
4.4.60.0030.0178.04
4.4.50.0030.0178.04
4.4.40.0070.0238.04
4.4.30.0070.0178.04
4.4.20.0070.0138.04
4.4.10.0070.0138.04
4.4.00.0030.0278.04
4.3.110.0070.0138.04
4.3.100.0030.0178.04
4.3.90.0070.0178.04
4.3.80.0070.0378.04
4.3.70.0030.0278.04
4.3.60.0070.0138.04
4.3.50.0030.0178.04
4.3.40.0070.0278.04
4.3.30.0000.0178.04
4.3.20.0000.0178.04
4.3.10.0000.0178.04
4.3.00.0030.0138.04

preferences:
141.3 ms | 1398 KiB | 7 Q