3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'inputs', 'app', 'post', 'server', ]; echo in_array('inputs', $array) ? '"inputs" is in the array...' : ''; echo "\n"; echo in_array(0, $array) ? '0 is also in the array!' : '0 is NOT in the array!'; echo "\n"; echo in_array(0, $array, true) ? '0 is also in the array!' : '0 is NOT in the array!'; echo "\n"; echo in_array(1, $array) ? '1 is also in the array!' : '1 is NOT in the array!'; echo "\n"; print_r(array_keys($array, 0));
Output for git.master, git.master_jit, rfc.property-hooks
"inputs" is in the array... 0 is NOT in the array! 0 is NOT in the array! 1 is NOT in the array! Array ( )

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:
29.7 ms | 405 KiB | 5 Q