3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return $r[0]; } return ''; } echo GetBetween('foo test bar', 'foo', 'bar'); print_r(explode("help,""help php program")); ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '"help php program"' (T_CONSTANT_ENCAPSED_STRING) in /in/vop8J on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/vop8J on line 12
Process exited with code 255.