3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $method = 'patch'; if (in_array($method, array('patch', 'put', 'delete')) { echo "Converting to " . $method; }
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '{' in /in/faoC8 on line 4
Process exited with code 255.