3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); function my_function() { echo print_r(debug_backtrace(), 1) . '<br/>'; } register_tick_function('my_function', true); $t = false; $ar = ['test1' => '111']; var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); foreach ($ar as $k => $e) { $t = ($k === 'test2'); var_dump('$t==='. var_export($t, 1)); if ($t===false) { continue; } var_dump('this line code is not executed (execute "continue")'); test2(); test3(); // this will handled or .. // test4(); // uncomment this and this will handled (but function not exist) } var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); function test2() { // this never handled (why? =)) return 1; } function test3() { var_dump('->' . __METHOD__ . ' on ' . __FILE__ . ':' . __LINE__); }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [file] => /in/hneib [line] => 10 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>Array ( [0] => Array ( [file] => /in/hneib [line] => 12 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>Array ( [0] => Array ( [file] => /in/hneib [line] => 13 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>string(18) "-> on /in/hneib:15" Array ( [0] => Array ( [file] => /in/hneib [line] => 15 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>Array ( [0] => Array ( [file] => /in/hneib [line] => 19 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>string(10) "$t===false" Array ( [0] => Array ( [file] => /in/hneib [line] => 21 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>Array ( [0] => Array ( [file] => /in/hneib [line] => 17 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>string(18) "-> on /in/hneib:34" Array ( [0] => Array ( [file] => /in/hneib [line] => 34 [function] => my_function [args] => Array ( [0] => 1 ) ) ) <br/>

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.57 ms | 405 KiB | 8 Q