3v4l.org

run code in 300+ PHP versions simultaneously
<?php class class1 { function class1() { error_log("Constuctor of class1"); } } class class2 extends class1 { } class class3 extends class2 { } class class4_working extends class3 { function class4_working() { parent::__construct(); } } class class4_notworking extends class3 { function class4_notworking() { parent::class2(); } } error_log("working"); $c = new class4_working(); error_log("notworking"); $c = new class4_notworking();
Output for git.master, git.master_jit, rfc.property-hooks
working notworking

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