3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "1,2,3"; $a = explode(",", $a); $b = array_map(function ($item) { return ["cpt"] = $item; }, $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.06320.30
7.0.10.0070.08720.05
7.0.00.0000.04320.15
5.6.170.0300.07320.50
5.6.160.0070.08720.43
5.6.150.0070.06718.19
5.6.140.0100.07018.30
5.6.130.0130.06018.17
5.6.120.0070.07721.00
5.6.110.0200.07321.01
5.6.100.0100.07320.99
5.6.90.0130.05320.99
5.6.80.0030.08320.38
5.5.310.0300.04020.50
5.5.300.0030.04318.09
5.5.290.0130.07017.98
5.5.280.0030.04020.88
5.5.270.0100.08320.89
5.5.260.0030.09020.95
5.5.250.0100.03720.71
5.5.240.0070.04720.26

preferences:
142.23 ms | 1386 KiB | 7 Q