3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump (preg_split ('~|й~u', 'п', 'р'));
Output for 7.0.0 - 7.1.0
Warning: preg_split() expects parameter 3 to be integer, string given in /in/cfs3i on line 2 bool(false)
Output for hhvm-3.12.0
Warning: preg_split() expects parameter 3 to be integer, string given in /in/cfs3i on line 2 NULL
Output for hhvm-3.10.0
Warning: preg_split() expects parameter 3 to be integer, string given in /in/cfs3i on line 8 NULL
Output for 5.2.0 - 5.6.28
Warning: preg_split() expects parameter 3 to be long, string given in /in/cfs3i on line 2 bool(false)
Output for 5.0.0 - 5.1.6
array(3) { [0]=> string(0) "" [1]=> string(2) "п" [2]=> string(0) "" }
Output for 4.3.5 - 4.4.9
array(2) { [0]=> string(0) "" [1]=> string(2) "п" }
Output for 4.3.0 - 4.3.4
array(4) { [0]=> string(0) "" [1]=> string(1) "�" [2]=> string(1) "�" [3]=> string(0) "" }