3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'A'+1; echo (char) ('A'+1);
Output for 7.2.0
Warning: A non-numeric value encountered in /in/Y3jc7 on line 3 1 Warning: Use of undefined constant char - assumed 'char' (this will throw an Error in a future version of PHP) in /in/Y3jc7 on line 4 Fatal error: Uncaught Error: Call to undefined function char() in /in/Y3jc7:4 Stack trace: #0 {main} thrown in /in/Y3jc7 on line 4
Process exited with code 255.
Output for 7.1.0 - 7.1.10
Warning: A non-numeric value encountered in /in/Y3jc7 on line 3 1 Notice: Use of undefined constant char - assumed 'char' in /in/Y3jc7 on line 4 Fatal error: Uncaught Error: Call to undefined function char() in /in/Y3jc7:4 Stack trace: #0 {main} thrown in /in/Y3jc7 on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20
1 Notice: Use of undefined constant char - assumed 'char' in /in/Y3jc7 on line 4 Fatal error: Uncaught Error: Call to undefined function char() in /in/Y3jc7:4 Stack trace: #0 {main} thrown in /in/Y3jc7 on line 4
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/Y3jc7 on line 4
Process exited with code 255.