3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback('~[A-Z]~', function($_) { return $_ + 32; }, 'Important: you are NOT allowed to use a built-in function that converts the string (or just one character) to lowercase (such as ToLower() in .NET, strtolower() in PHP , ...)! You\'re allowed to use all other built-in functions, however.');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Unsupported operand types in /in/ZF5Vo:2 Stack trace: #0 [internal function]: {closure}(Array) #1 /in/ZF5Vo(2): preg_replace_callback('~[A-Z]~', Object(Closure), 'Important: you ...') #2 {main} thrown in /in/ZF5Vo on line 2
Process exited with code 255.
Output for 5.3.4 - 5.6.28
Fatal error: Unsupported operand types in /in/ZF5Vo on line 2
Process exited with code 255.
Output for 5.2.15 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/ZF5Vo on line 2
Process exited with code 255.