3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc = "|7|"; $a = array_filter(explode('|', $abc, function ($el) { if ($el != "") { return true; } return false; }); print_r($a);

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)
7.0.20.0330.06720.19
7.0.10.0100.09020.12
7.0.00.0070.09020.08
5.6.170.0430.07320.42
5.6.160.0130.05020.47
5.6.150.0070.03718.20
5.6.140.0170.04318.11
5.6.130.0070.03718.19
5.6.120.0170.04020.99
5.6.110.0070.08721.12
5.6.100.0070.04320.98
5.6.90.0130.07020.99
5.6.80.0070.07320.34
5.5.310.0370.06320.30
5.5.300.0070.08018.02
5.5.290.0070.05018.07
5.5.280.0070.08320.88
5.5.270.0130.07320.82
5.5.260.0100.08020.87
5.5.250.0070.04020.67
5.5.240.0130.07020.26

preferences:
143.91 ms | 939 KiB | 8 Q