3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $process = array("as12"=>"deleted","as13"=>1,"as14"=>1); if(!in_array(0, $process)) echo "success"; else echo "not success"; //It's outputting "not success"; var_dump(in_array(0, $process)); //Output : null var_dump(in_array(0, $this->tProcessActions) === true); ///Output : true
Output for 7.0.0 - 7.1.0
not successbool(true) Fatal error: Uncaught Error: Using $this when not in object context in /in/noI5S:14 Stack trace: #0 {main} thrown in /in/noI5S on line 14
Process exited with code 255.
Output for 5.2.3 - 5.6.28
not successbool(true) Fatal error: Using $this when not in object context in /in/noI5S on line 14
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.2.2
not successbool(true) <br /> <b>Fatal error</b>: Using $this when not in object context in <b>/in/noI5S</b> on line <b>14</b><br />
Process exited with code 255.
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/noI5S</b> on line <b>15</b><br />
Process exited with code 255.
Output for 4.4.3 - 4.4.9
not successbool(true) <br /> <b>Warning</b>: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in <b>/in/noI5S</b> on line <b>14</b><br /> bool(false)
Output for 4.3.2 - 4.4.2
not successbool(true) <br /> <b>Warning</b>: in_array(): Wrong datatype for second argument in <b>/in/noI5S</b> on line <b>14</b><br /> bool(false)
Output for 4.3.0 - 4.3.1
not successbool(true) <br /> <b>Warning</b>: in_array() [<a href='http://www.php.net/function.in-array'>function.in-array</a>]: Wrong datatype for second argument in <b>/in/noI5S</b> on line <b>14</b><br /> bool(false)