3v4l.org

run code in 300+ PHP versions simultaneously
<?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' (T_STRING) in /in/EctJh on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/EctJh on line 12
Process exited with code 255.

preferences:
182.49 ms | 1395 KiB | 64 Q