3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "BEFORE" . PHP_EOL . PHP_EOL; $myArray = [ 'test'=> ['label'=> ['show'=> false]] ]; $myArray[array_key_last($myArray)]['label']['show'] = true; var_dump($myArray); echo PHP_EOL . PHP_EOL. "AFTER" . PHP_EOL . PHP_EOL; $myArray = [ 'test'=> ['label'=> ['show'=> false]] ]; array_last($myArray)['label']['show'] = true; var_dump($myArray);

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.5.10.0120.00716.68
8.5.00.0100.00916.55
8.4.160.0110.01023.33
8.4.150.0180.00821.73
8.4.140.0140.00717.75
8.4.130.0100.01117.86
8.4.90.0130.00819.85
8.3.290.0120.01420.75
8.3.280.0120.00818.49
8.3.270.0110.01016.88
8.3.180.0120.00616.86
8.3.50.0090.00918.82
8.2.300.0140.00520.06
8.1.340.0100.01017.66

preferences:
30.5 ms | 403 KiB | 5 Q