3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<END [F] = [] [T] = [[0,0]] [T,T,F,T] = [[0,1],[3,3]] [F,T,T,F,F,T,T,T] = [[1,2],[5,7]] [F,T,T,F,F,F,T,T,T,T] = [[1,2],[6,9]] [T,T,F,F,F,T,T,T,T,T,T,T,T,T,T,F] = [[0,1],[5,14]] [F,F,T,T,F,F,F,F,F,F,F,F,T,T,T,T,T,T,T,T,F,F,F,F,F,F,F,F,F,F,F,F,F,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,T,T] = [[2,3],[12,19],[33,54],[93,94]] END; $tests = []; foreach(explode("\n", $str) as $line) { list($values, $result) = explode('=', $str); $values = explode(',', trim(trim($values), '[]')); $result = eval($result . ';'); $tests[] = [$values, $result]; } print_r($tests);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "T" in /in/IIbhB(17) : eval()'d code:2 Stack trace: #0 /in/IIbhB(17): eval() #1 {main} thrown in /in/IIbhB(17) : eval()'d code on line 2
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:
49.94 ms | 401 KiB | 8 Q