3v4l.org

run code in 300+ PHP versions simultaneously
<?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; ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
60 Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/II00E:17 Stack trace: #0 /in/II00E(23): PersonalInformation() #1 {main} thrown in /in/II00E on line 17
Process exited with code 255.
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
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
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
60 Notice: Undefined variable: Combination in /in/II00E on line 24

preferences:
162.14 ms | 402 KiB | 179 Q