3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $firstName; public $lastName; public $registrationDate; } $users = array( new User('John', 'Doe', 32486238765), new User('John', 'Doe', 32486238765) ); var_dump($users); ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> object(User)#1 (3) { ["firstName"]=> NULL ["lastName"]=> NULL ["registrationDate"]=> NULL } [1]=> object(User)#2 (3) { ["firstName"]=> NULL ["lastName"]=> NULL ["registrationDate"]=> NULL } }

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