3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $old = 30; $name ='翔太'; if ($old >= 20){ print name+'年齢は20才以上です'; } ?>
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /in/KM2UX on line 6 Warning: A non-numeric value encountered in /in/KM2UX on line 6 Warning: A non-numeric value encountered in /in/KM2UX on line 6 0
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant name - assumed 'name' in /in/KM2UX on line 6 Warning: A non-numeric value encountered in /in/KM2UX on line 6 Warning: A non-numeric value encountered in /in/KM2UX on line 6 0
Output for 4.3.0 - 7.0.20
Notice: Use of undefined constant name - assumed 'name' in /in/KM2UX on line 6 0