3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController { public static $var_test = '#'; public function __construct() { self::$var_test = "100"; } } class AdminController extends BaseController { public function render() { echo parent::$var_test; // Prints 100 here (www.3v4l.org/mkoLL) which is correct // Prints # in CI 4 AdminController extended from BaseController which is wrong } } $adm = new AdminController; var_dump($adm->render()); ?>
Output for git.master, git.master_jit, rfc.property-hooks
100NULL

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