3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['aaa'] = "0.9999999999999999"; $a=0; $b=0; $c=0; if (isset($_GET['aaa'])) { $aaa = $_GET['aaa']; $aaa=="1"?die("1"):NULL; switch ($aaa) { case 0: case 1: $a=1; break; } } var_dump($a); $bbb=(array)json_decode(@$_GET['bbb']); if(is_array($bbb)){ is_numeric(@$bbb["ccc"])?die("2"):NULL; if(@$bbb["ccc"]){ ($bbb["ccc"]>2017)?$b=1:NULL; } if(is_array(@$bbb["ddd"])){ if(count($bbb["ddd"])!==2 OR !is_array($bbb["ddd"][0])) die("3"); $eee = array_search("XMAN", $bbb["ddd"]); $eee===false?die("4"):NULL; foreach($bbb["ddd"] as $key=>$val){ $val==="XMAN"?die("5"):NULL; } $c=1; } } else { echo 'r'; } if($a && $b && $c){ echo 'Yes'; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
int(0) Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/9X1RO on line 21

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