3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php$buf = ' @abc{ ';preg_match('/(?P<token>[^\s]+)\s*/', $buf, $match, PREG_OFFSET_CAPTURE);print_r($match);$buf = substr($buf, $match[0][1] + strlen($match[0][0]));var_dump($buf);var_dump($match['token'][0]);
based on 1lBlF
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected '$buf' (T_VARIABLE) in /in/en9SZ on line 1
Process exited with code 255.