3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class A { } class B { public function __construct() { die("sorry"); } } $a = new A( new B() ); echo "good";