3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { var $v = 'none'; function __construct($v) { $this->v = $v; } } function cf($c, $v) { $c->v = $v; } $c = new c('init'); $c1 = $c; cf($c, 'changed'); var_dump($c); var_dump($c1); //output php5 //php5 fix output $c1 to '123', $c2 to 'none' //output php4, fix capbility //php4 fix output $c1 to '123', $c2 to '123'
Output for git.master, git.master_jit, rfc.property-hooks
object(c)#1 (1) { ["v"]=> string(7) "changed" } object(c)#1 (1) { ["v"]=> string(7) "changed" }

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