3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Syntax error: tested code has a space between equal signs $tokens=token_get_all('<?php if($foo= =$bar) {}', TOKEN_PARSE); var_dump($tokens); // not printed on error
based on rrolW
Output for 7.0.0 - 7.0.25, 7.1.0 - 7.1.33, 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7, 8.0.0alpha1 - alpha2
Parse error: syntax error, unexpected '=' in on line 1
Process exited with code 255.