3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1 => 1, 'c'=>2, 'b'=>3, 'd'=>4); $a[] = "first value with implicit key"; unset('c'); $a['a'] = "new a"; $a[] = "second value with implicit key"; $a['b'] = "replaced b"; var_export($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.2.30.0190.01117.57
7.2.20.0230.01317.27
7.2.10.0270.01217.01
7.2.00.0130.00917.45
7.1.150.0110.01216.28
7.1.140.0160.01316.21
7.1.130.0180.01316.18
7.1.120.0110.01116.35
7.1.110.0130.01115.50
7.1.100.0080.01215.68
7.1.90.0140.01215.54
7.1.80.0140.00615.70
7.1.70.0130.00715.21
7.1.60.0310.01233.18
7.1.50.0340.01532.85
7.1.40.0780.01032.20
7.1.30.0310.01432.39
7.1.20.0280.01332.51
7.1.10.0080.00914.44
7.1.00.0210.01114.71

preferences:
144.88 ms | 1394 KiB | 7 Q