3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $txt=" gopu.phaneendra"; echo"hellp"; function add() { $x=20; $y=15; $z=$x+$y; echo $z; $Z++; } function sub() { $x=20; $y=14; $z=$x-$y; echo $z; $z--; } function mul() { $x=20; $y=15; $z=20*15; echo $z; } function mod() { $x=10; $y=20; $z=$x%y; echo $x; Echo $y; echo $z; } function div() { $x=20; $y=2; $z=$x/$y; echo $z; } add(); add(); sub(); sub(); mul(); mod(); div();
based on ZXZQI
Output for 7.1.0
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 Warning: A non-numeric value encountered in /in/fSm8l on line 31 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/fSm8l:31 Stack trace: #0 /in/fSm8l(48): mod() #1 {main} thrown in /in/fSm8l on line 31
Process exited with code 255.
Output for 7.0.0 - 7.0.14
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/fSm8l:31 Stack trace: #0 /in/fSm8l(48): mod() #1 {main} thrown in /in/fSm8l on line 31
Process exited with code 255.
Output for 5.2.0 - 5.6.28, hhvm-3.12.0
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 Warning: Division by zero in /in/fSm8l on line 31 102010
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.4 - 5.1.6
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 102010
Output for 4.3.0 - 4.4.4, 5.0.0 - 5.0.3
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 102010
Output for 4.4.5 - 4.4.9
hellp35 Notice: Undefined variable: Z in /in/fSm8l on line 10 35 Notice: Undefined variable: Z in /in/fSm8l on line 10 66300 Notice: Use of undefined constant y - assumed 'y' in /in/fSm8l on line 31 Warning: Division by zero in /in/fSm8l on line 31 102010