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=200; $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 HSJfr
Output for 7.1.0
hellp353566300 Notice: Use of undefined constant y - assumed 'y' in /in/erCM3 on line 31 Warning: A non-numeric value encountered in /in/erCM3 on line 31 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/erCM3:31 Stack trace: #0 /in/erCM3(48): mod() #1 {main} thrown in /in/erCM3 on line 31
Process exited with code 255.
Output for 7.0.0 - 7.0.14
hellp353566300 Notice: Use of undefined constant y - assumed 'y' in /in/erCM3 on line 31 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/erCM3:31 Stack trace: #0 /in/erCM3(48): mod() #1 {main} thrown in /in/erCM3 on line 31
Process exited with code 255.
Output for 4.4.5 - 4.4.9, 5.2.0 - 5.6.28, hhvm-3.12.0
hellp353566300 Notice: Use of undefined constant y - assumed 'y' in /in/erCM3 on line 31 Warning: Division by zero in /in/erCM3 on line 31 2002010
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.4, 5.0.0 - 5.1.6
hellp353566300 Notice: Use of undefined constant y - assumed 'y' in /in/erCM3 on line 31 2002010