3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ 'a' => [], 'b' => ['total' => ['column' => '1']], 'c' => ['total' => ['column' => '2']], ]; function get_total($input) { foreach ($input as $v) { yeild (isset($v['total']) ? $v : null); } } var_dump(get_total($test));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function yeild() in /in/UEMM1:11 Stack trace: #0 /in/UEMM1(15): get_total(Array) #1 {main} thrown in /in/UEMM1 on line 11
Process exited with code 255.

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