3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s=100; $a=array("1"=>"1"); $_POST['ar1[]']=array("1"=>"1"); $_POST['ar2[]']=[]; $_POST['ar3[]']=[]; $_POST['a1']=1; $_POST['a2']=2; $_POST['a3']=3; $_POST['a4']=4; $_POST['a5']=5; $_POST['a6']=6; $_POST['a7']=7; $_POST['a8']=8; $_POST['a9']=9; $_POST['a10']=10; echo $a; foreach ($_POST as $p ) { if(is_array($p)) $s+=-17; else $s-=-2; echo $p."\n"; } if ($s!==69) die(); echo 'udalo sie 69';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/tRuh5 on line 17 Array Warning: Array to string conversion in /in/tRuh5 on line 21 Array Warning: Array to string conversion in /in/tRuh5 on line 21 Array Warning: Array to string conversion in /in/tRuh5 on line 21 Array 1 2 3 4 5 6 7 8 9 10 udalo sie 69

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