3v4l.org

run code in 500+ PHP versions simultaneously
<?php // what does 1 and true mean here? $keys = array_keys($array, 1, true); // yes but of course $keys = array_keys($array, filter_value:1, strict:true); ?>
Output for git.master_jit, git.master
Warning: Undefined variable $array in /in/Qr4tP on line 4 Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /in/Qr4tP:4 Stack trace: #0 /in/Qr4tP(4): array_keys(NULL, 1, true) #1 {main} thrown in /in/Qr4tP on line 4
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:
49.51 ms | 873 KiB | 4 Q