3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function checkVal($val){ return empty($val) ? "" : $val; } $show_insert = array( 'title' => checkVal($show_data['title']), 'thetvdb_id' => checkVal($show_data['tvdbid']) );
based on 1RQ06
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: show_data in /in/43Kq4 on line 7 Notice: Undefined variable: show_data in /in/43Kq4 on line 8
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: show_data in /in/43Kq4 on line 7 Notice: Undefined variable: show_data in /in/43Kq4 on line 8