3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class a { public function run() { echo "a::run get_class: " . get_class($this); echo "\na::run __CLASS__: " . __CLASS__; } } class b extends a{ public function run_b() { echo "b::run_b get_class: " . get_class($this); echo "\nb::run_b __CLASS__: " . __CLASS__; } } //$a = new a(); $b = new b(); //echo "\na->run();\n"; //$a->run(); echo "\n\nb->run();\n"; $b->run(); echo "\n\nb->run_b();\n"; $b->run_b();
Output for git.master, git.master_jit, rfc.property-hooks
b->run(); a::run get_class: b a::run __CLASS__: a b->run_b(); b::run_b get_class: b b::run_b __CLASS__: b

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:
62.72 ms | 401 KiB | 8 Q