3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1=0;$v2=0;$v3=0;$v4=0; $a=(array)json_decode($_GET['a']); if(is_array($a)){ is_numeric($a["a1"])?die("nope"):NULL; if($a["a1"]){ ($a["a1"]>1336)?$v1=1:NULL; } if(is_array($a["a2"])){ if(count($a["a2"])!==5 OR !is_array($a["a2"][0])) die("nope"); $pos = array_search("ctf", $a["a2"]); $pos===false?die("nope"):NULL; foreach($a["a2"] as $key=>$val){ $val==="ctf"?die("nope"):NULL; } $v2=1; } } if(preg_match("/^([0-9]+\.?[0-9]+)+$/",$_GET['b'])){ $b=json_decode($_GET['b']); if($var = $b === NULL){ ($var===true)?$v3=1:NULL; } } $c=$_GET['c']; $d=$_GET['d']; if($c[1]){ if(!strcmp($c[1],$d) && $c[1]!==$d){ eregi("3|1|c",$d.$c[0])?die("nope"):NULL; strpos(($c[0].$d), "31c3")?$v4=1:NULL; } } if($v1 && $v2 && $v3 && $v4){ include "flag.php"; echo $flag; } ?>
Output for git.master, git.master_jit
Warning: Undefined array key "a" in /in/QFBTi on line 3 Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/QFBTi on line 3 Warning: Undefined array key "a1" in /in/QFBTi on line 5 Warning: Undefined array key "a1" in /in/QFBTi on line 6 Warning: Undefined array key "a2" in /in/QFBTi on line 9 Warning: Undefined array key "b" in /in/QFBTi on line 19 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/QFBTi on line 19 Warning: Undefined array key "c" in /in/QFBTi on line 25 Warning: Undefined array key "d" in /in/QFBTi on line 26 Warning: Trying to access array offset on value of type null in /in/QFBTi on line 27
Output for rfc.property-hooks
Warning: Undefined array key "a" in /in/QFBTi on line 3 Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/QFBTi on line 3 Warning: Undefined array key "a1" in /in/QFBTi on line 5 Warning: Undefined array key "a1" in /in/QFBTi on line 6 Warning: Undefined array key "a2" in /in/QFBTi on line 9 Warning: Undefined array key "b" in /in/QFBTi on line 19 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/QFBTi on line 19 Warning: Undefined array key "c" in /in/QFBTi on line 25 Warning: Undefined array key "d" in /in/QFBTi on line 26 Warning: Trying to access array offset on null in /in/QFBTi on line 27

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:
63.02 ms | 402 KiB | 8 Q