3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ mycalc = new MyCalculator (12, 6); echo $ mycalc-> add (); / / Muestra 18 echo $ mycalc-> multiplicar (); / / Muestra 72 - See more at: http://www.w3resource.com/php-exercises/php-class-exercises.php#sthash.HTNdYEMQ.dpuf
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'mycalc' (T_STRING), expecting variable (T_VARIABLE) or '$' in /in/NUGEv on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /in/NUGEv on line 2
Process exited with code 255.