3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new stdClass; $data->{"12"} = 37; $data = (array) $data; var_dump( $data ); echo $data[12]; echo $data['12']; $i = array_key_exists(12, $data); $s = array_key_exists('12', $data); var_dump($i, $s); foreach ($data as $key => $value) { echo $key; echo gettype($key); }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [12]=> int(37) } 3737bool(true) bool(true) 12integer

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