3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s=100; $_POST['ar1[]']=1; $_POST['ar2[]']=1; $_POST['ar3[]']=1; $_POST['a1']=1; $_POST['a2']=2; $_POST['a3']=3; $_POST['a4']=4; $_POST['a5']=5; $_POST['a6']=1; $_POST['a7']=1; $_POST['a8']=1; $_POST['a9']=1; $_POST['a10']=1; foreach ($_POST as $p ) { if(is_array($p)) $s+=-17; else $s-=-2; echo $p.'\n'; } if ($s!==69) die(); echo 'udalo sie 69';
based on YH66I
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
1\n1\n1\n1\n2\n3\n4\n5\n1\n1\n1\n1\n1\n