3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test = [ TRUE => TRUE, FALSE => FALSE, 'string' => 'string', ]; var_dump($test); var_dump($test[TRUE]); var_dump($test[FALSE]); print "---\n"; foreach ($test as $key => $value) { var_dump(is_bool($key)); var_dump($key == FALSE); }
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [1]=> bool(true) [0]=> bool(false) ["string"]=> string(6) "string" } bool(true) bool(false) --- bool(false) bool(false) bool(false) bool(true) bool(false) bool(false)

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:
51.26 ms | 1283 KiB | 4 Q