3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1' => 'A', '2' => null, '3' => 0]; foreach (['1', '2', '3', '4'] as $test) { var_export(isset($array[$test]) ? $array[$test] : '-'); echo " , "; var_export(key_exists($test, $array) ? $array[$test] : '-'); echo " , "; var_export(array_key_exists($test, $array) ? $array[$test] : '-'); echo " , "; var_export($array[$test] ?? '-'); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
'A' , 'A' , 'A' , 'A' '-' , NULL , NULL , '-' 0 , 0 , 0 , 0 '-' , '-' , '-' , '-'

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:
76.44 ms | 1246 KiB | 4 Q