3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { } class Profile { public function __construct(User $user) { $this->user = $user; } } $user1 = new User; $prof1 = new Profile($user1); $user2 = new User; $prof2 = new Profile($user2); var_dump($profile1 == $user2);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Profile::$user is deprecated in /in/XNkre on line 14 Deprecated: Creation of dynamic property Profile::$user is deprecated in /in/XNkre on line 14 Warning: Undefined variable $profile1 in /in/XNkre on line 24 bool(false)

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:
40.9 ms | 402 KiB | 8 Q