3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'regexp' => '/\A[\r\n\t[:^cntrl:]]{1,100}\z/u', ]; $name = filter_input("\00", FILTER_VALIDATE_REGEXP, compact('options')); var_dump($name);
Output for 7.0.0 - 7.2.0
Warning: filter_input() expects parameter 1 to be integer, string given in /in/2Crcg on line 5 NULL
Output for 5.4.11 - 5.6.28
Warning: filter_input() expects parameter 1 to be long, string given in /in/2Crcg on line 5 NULL
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/2Crcg on line 2
Process exited with code 255.