3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $a = [ "address" => "", "room" => "", "city" => "", "state" => "NY", "zip" => "" ]; if (!empty($a["room"])) { $a["room"] = sprintf("room %s", $a["room"]); } $a = array_values($a); $a = array_filter($a); $b = implode(", ", $a); echo $b;

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.10.0070.04020.12
7.0.00.0030.06320.15
5.6.160.0030.04320.43
5.6.150.0000.04018.18
5.6.140.0100.03318.23
5.6.130.0130.07318.16
5.6.120.0200.06320.98
5.6.110.0130.08320.95
5.6.100.0000.08721.11
5.6.90.0070.05021.01
5.6.80.0130.08020.35
5.5.300.0030.07017.91
5.5.290.0000.05018.06
5.5.280.0170.07320.76
5.5.270.0070.04020.86
5.5.260.0070.05320.75
5.5.250.0130.08020.54
5.5.240.0200.07320.33

preferences:
139.36 ms | 1394 KiB | 7 Q