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);
Output for git.master_jit, git.master
BEFORE array(1) { ["test"]=> array(1) { ["label"]=> array(1) { ["show"]=> bool(true) } } } AFTER array(1) { ["test"]=> array(1) { ["label"]=> array(1) { ["show"]=> bool(false) } } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
26.99 ms | 406 KiB | 5 Q