3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ichinoda['navbar'] = array( 'class' => 'nb-plain', 'items' => array( 'hem' => array('text'=>'Hem', 'url'=>'me.php', 'title' => 'Min presentation om mig själv'), 'redovisning' => array('text'=>'Redovisning', 'url'=>'redovisning.php', 'title' => 'Redovisningar för kursmomenten'), 'filmdb' => array('text'=>'FilmDB', 'url'=>'filmdb.php', 'title' => 'Filmdatabas'), 'kalender' => array('text'=>'Kalender', 'url'=>'calendar.php', 'title' => 'Kalender med bild', 'submenu' => array( 'items' => array( // This is a menu item of the submenu 'searchTitle' => array( 'text' => 'search title', 'url' => 'moviedb_searchTitle.php', 'title' => 'search title' ), // This is a menu item of the submenu 'searchYear' => array( 'text' => 'searchYear', 'url' => 'moviedb_searchYear.php', 'title' => 'searchYear', 'class' => 'italic' ), 'searchGenre' => array( 'text' => 'searchGenre', 'url' => 'moviedb_searchGenre.php', 'title' => 'searchGenre', 'class' => 'italic' ), 'update' => array( 'text' => 'moviedb_update', 'url' => 'moviedb_update.php', 'title' => 'moviedb_update', 'class' => 'italic' ), 'create' => array( 'text' => 'moviedb_create', 'url' => 'moviedb_create.php', 'title' => 'moviedb_create', 'class' => 'italic' ), 'delete' => array( 'text' => 'moviedb_delete', 'url' => 'moviedb_delete.php', 'title' => 'moviedb_delete', 'class' => 'italic' ), ), ), ), 'kallkod' => array('text'=>'Källkod', 'url'=>'source.php', 'title' => 'Se källkoden'), ), 'callback_selected' => function($url) { if(basename($_SERVER['SCRIPT_FILENAME']) == $url) { return true; } } );
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/eBeFL on line 61
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/eBeFL on line 61
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/eBeFL on line 61
Process exited with code 255.