3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'string' => 'my string', 'empty string' => '', 'number' => 5, 'zero' => 0, 'null' => null, 'array' => array(1, 2, 3), 'empty_array' => array(), ); foreach ($arr as $key => $value) { echo $key, ' is ', (isset($arr[$key]) ? 'set' : 'not set'), PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
string is set empty string is set number is set zero is set null is not set array is set empty_array is set

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