3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number=50; $number2=10; #Information Page $First_Name= "Semen"; $Last_Name= "Kabaza"; function myTest () { global $number, $number2; $number2 = $number + $number2; } function PersonalInformation(){ global $First_Name, $Last_Name; $Combination= $First_Name + $Last_Name; } myTest(); echo $number2; PersonalInformation(); echo $Combination; ?>
based on Ohva9
Output for 7.1.0 - 7.2.0
60 Warning: A non-numeric value encountered in /in/II00E on line 17 Warning: A non-numeric value encountered in /in/II00E on line 17 Notice: Undefined variable: Combination in /in/II00E on line 24
Output for 5.3.19 - 7.0.20
60 Notice: Undefined variable: Combination in /in/II00E on line 24