3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [6 => 'a', -1 => 'b', 4 => 'c']; var_export( array_last($array) );

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)
8.4.120.0100.00520.38
8.4.110.0060.00318.81
8.4.100.0060.00417.90
8.4.90.0090.01017.90
8.4.80.0080.00219.82
8.4.70.0100.00218.04
8.3.250.0090.00718.95
8.3.240.0080.01016.56
8.3.230.0120.00716.88
8.3.220.0050.00416.97
8.3.210.0060.00316.97
8.3.180.0050.00416.97
8.3.50.0060.00216.97
8.2.290.0100.00920.36

preferences:
34.55 ms | 403 KiB | 5 Q