3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chercheIndices($val,$t){ for($i=0;$i<count($t);$i++){ if($t[$i]==$val){ $res = $res + "{la valeur}{$t}{est a la case numéro}{$i}{<br/>}"; } } return $res; } $res="{}"; $t=array(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9); chercheIndices(4,$t); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/465Aa on line 6 Warning: Undefined variable $res in /in/465Aa on line 6 Fatal error: Uncaught TypeError: Unsupported operand types: null + string in /in/465Aa:6 Stack trace: #0 /in/465Aa(14): chercheIndices(4, Array) #1 {main} thrown in /in/465Aa on line 6
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:
55.24 ms | 401 KiB | 8 Q