3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4); $array2 = array('green' => 5, 'blue' => 6, 'yellow' => 7, 'cyan' => 8); var_dump(array_diff_key(asort($array1), sort($array2))); ?>
Output for git.master, git.master_jit
Fatal error: Uncaught TypeError: array_diff_key(): Argument #1 ($array) must be of type array, bool given in /in/fL7Am:5 Stack trace: #0 /in/fL7Am(5): array_diff_key(true, true) #1 {main} thrown in /in/fL7Am on line 5
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught TypeError: array_diff_key(): Argument #1 ($array) must be of type array, true given in /in/fL7Am:5 Stack trace: #0 /in/fL7Am(5): array_diff_key(true, true) #1 {main} thrown in /in/fL7Am on line 5
Process exited with code 255.

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:
60.27 ms | 401 KiB | 8 Q