3v4l.org

run code in 300+ PHP versions simultaneously
<?php $routes = ['foo.bar.index', 'foo.bar.create', 'hello.world.index']; foreach ($routes as $route) { $route = explode('.', $route); $permissions[] = $permissions[$route[0]][$route[1]][$route[2]]; } print_r($permissions);
Output for git.master, git.master_jit
Warning: Undefined variable $permissions in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Undefined array key "foo" in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Undefined array key "hello" in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Warning: Trying to access array offset on value of type null in /in/iLLk5 on line 9 Array ( [0] => [1] => [2] => )
Output for rfc.property-hooks
Warning: Undefined variable $permissions in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Undefined array key "foo" in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Undefined array key "hello" in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Warning: Trying to access array offset on null in /in/iLLk5 on line 9 Array ( [0] => [1] => [2] => )

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:
46.48 ms | 402 KiB | 8 Q