3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tester { public function calculate($var_1,$var_2,$var_3) { $product = var_3($var_1,$var_2); echo $product; } public function returnProduct($var_1,$var_2) { return $var_1*$var_2; } } $obj = new Tester(); $obj->calculate(100,2,$obj->returnProduct);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined property: Tester::$returnProduct in /in/PYpor on line 14 Fatal error: Uncaught Error: Call to undefined function var_3() in /in/PYpor:4 Stack trace: #0 /in/PYpor(14): Tester->calculate(100, 2, NULL) #1 {main} thrown in /in/PYpor on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.48 ms | 401 KiB | 8 Q