3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match("/(.*) \[C\](.*)\[\/C\](.*)/i",$edit,$matches); $a = $matches[1]; $b = $matches[2]; echo($a.";".$b); ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: edit in /in/sHXi0 on line 2 Notice: Undefined offset: 1 in /in/sHXi0 on line 3 Notice: Undefined offset: 2 in /in/sHXi0 on line 4 ;
Output for hhvm-3.12.0
Notice: Undefined variable: edit in /in/sHXi0 on line 2 Warning: preg_match() expects parameter 2 to be string, null given in /in/sHXi0 on line 2 ;
Output for hhvm-3.10.0
Notice: Undefined variable: edit in /in/sHXi0 on line 2 Notice: Undefined index: 1 in /in/sHXi0 on line 3 Notice: Undefined index: 2 in /in/sHXi0 on line 4 ;
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: edit in /in/sHXi0 on line 2 Notice: Undefined offset: 1 in /in/sHXi0 on line 3 Notice: Undefined offset: 2 in /in/sHXi0 on line 4 ;
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: edit in /in/sHXi0 on line 2 Notice: Undefined offset: 1 in /in/sHXi0 on line 3 Notice: Undefined offset: 2 in /in/sHXi0 on line 4 ;