3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user=False; $p=array(); $a=array("ppp"); var_dump($a==TRUE); var_dump($a==FALSE); var_dump($a==1); var_dump($a==0); var_dump($a==-1); var_dump($a=="1"); var_dump($a=="0"); var_dump($a=="-1"); var_dump($a==NULL); var_dump($a==$p); var_dump($a=="ppp"); var_dump($a==""); var_dump($a==array("ppp")); var_dump(mysql_fetch_array(True));
Output for 7.0.0 - 7.1.0
bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) Fatal error: Uncaught Error: Call to undefined function mysql_fetch_array() in /in/WAEvA:18 Stack trace: #0 {main} thrown in /in/WAEvA on line 18
Process exited with code 255.
Output for 5.0.0 - 5.6.28
bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) Fatal error: Call to undefined function mysql_fetch_array() in /in/WAEvA on line 18
Process exited with code 255.
Output for 4.3.0 - 4.4.9
bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /in/WAEvA on line 18 NULL