3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serialized_array = serialize(array(1234=>array("something"=>"foobar"))); echo "Serialized Array: $serialized_array" . PHP_EOL; $array = unserialize($serialized_array); print_r($array); $key = 1234; if (array_key_exists($key, $array)) { echo "Key Exists!"; } else { echo "Key Not Found!"; }
Output for git.master, git.master_jit, rfc.property-hooks
Serialized Array: a:1:{i:1234;a:1:{s:9:"something";s:6:"foobar";}} Array ( [1234] => Array ( [something] => foobar ) ) Key Exists!

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