3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 'On'); ini_set('display_startup_errors', 'On'); error_reporting(-1); $ser = 'a:1:{i:0;a:4:{s:5:"tasks";s:1:"1";s:10:"open_tasks";s:1:"1";s:14:"resolved_tasks";s:1:"0";s:4:"ppid";s:1:"1";}}'; $array = unserialize($ser); var_dump($array, (int) $array['open_tasks']); // Oops!
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "open_tasks" in /in/ept6W on line 10 array(1) { [0]=> array(4) { ["tasks"]=> string(1) "1" ["open_tasks"]=> string(1) "1" ["resolved_tasks"]=> string(1) "0" ["ppid"]=> string(1) "1" } } int(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:
50.35 ms | 401 KiB | 8 Q