3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php while($row = mysql_fetch_assoc($res)) { if($row['Leeftijd'] == 3) { echo ("<img src='/Images/Pegi_3.gif'/>"); } else if($row['Leeftijd'] == 7) { echo ("<img src='/Images/Pegi_7.gif'/>"); } else if($row['Leeftijd'] == 12) { echo ("<img src='/Images/Pegi_12.gif'/>"); } else if($row['Leeftijd'] == 16) { echo ("<img src='/Images/Pegi_16.gif'/>"); } else { echo ("<img src='/Images/Pegi_18.gif'/>"); } } ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mysql_fetch_assoc() in /in/o37Bj:2 Stack trace: #0 {main} thrown in /in/o37Bj on line 2
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Call to undefined function mysql_fetch_assoc() in /in/o37Bj on line 2
Process exited with code 255.