3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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); 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; } chercheIndices(4,$t); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/DdRYe on line 9 Warning: Undefined variable $res in /in/DdRYe on line 9 Fatal error: Uncaught TypeError: Unsupported operand types: null + string in /in/DdRYe:9 Stack trace: #0 /in/DdRYe(16): chercheIndices(4, Array) #1 {main} thrown in /in/DdRYe on line 9
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:
88.81 ms | 401 KiB | 8 Q