3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( explode( '/', 'banner_top_wide', 2 ) ); list( $moduleName, $viewName ) = explode( '/', 'banner_top_wide', 2 ); var_dump( array( $moduleName, $viewName ) );
Output for 5.3.0 - 7.1.0
array(1) { [0]=> string(15) "banner_top_wide" } Notice: Undefined offset: 1 in /in/qKNTu on line 4 array(2) { [0]=> string(15) "banner_top_wide" [1]=> NULL }
Output for 4.3.0 - 5.2.17
array(1) { [0]=> string(15) "banner_top_wide" } Notice: Undefined offset: 1 in /in/qKNTu on line 4 array(2) { [0]=> string(15) "banner_top_wide" [1]=> NULL }