3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function staticA() { echo "A::staticA()".PHP_EOL; } public function instanceA() { echo "A->instanceA()".PHP_EOL; } } class B extends A { public static function staticCalls() { echo "B::staticCalls()".PHP_EOL; parent::staticA(); echo "------------------------".PHP_EOL; } public function calls() { echo "B->calls()".PHP_EOL; parent::staticA(); parent::instanceA(); echo "------------------------".PHP_EOL; } } $b = new B(); B::staticCalls(); $b->calls();
Output for git.master, git.master_jit, rfc.property-hooks
B::staticCalls() A::staticA() ------------------------ B->calls() A::staticA() A->instanceA() ------------------------

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:
59.35 ms | 405 KiB | 5 Q