3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = 'http://dantri.com.vn/xin-chao.html?lang=vi&id=123'; var_dump(explode('?', $url, 2));
based on Ncm4A
Output for 5.3.19 - 5.6.38, hhvm-3.10.1, hhvm-3.20.2 - 3.21.3, 7.0.0 - 7.3.0
Notice: Undefined variable: url in /in/6G6YP on line 5 array(1) { [0]=> string(0) "" }
Output for hhvm-3.22.0
Notice: Undefined variable: url in /in/6G6YP on line -1 array(1) { [0]=> string(0) "" }
Output for hhvm-3.11.1 - 3.19.2
Notice: Undefined variable: url in /in/6G6YP on line 5 Warning: explode() expects parameter 2 to be string, null given in /in/6G6YP on line 5 NULL