3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 5; public $b = 'b'; public $c = null; protected $d = "d"; private $e = "eeeee"; public function __construct() { $this->c = new \StdClass(); $this->c->a = 5; $this->c->b = "q"; } } echo serialize(new A);
Output for git.master, git.master_jit, rfc.property-hooks
O:1:"A":5:{s:1:"a";i:5;s:1:"b";s:1:"b";s:1:"c";O:8:"stdClass":2:{s:1:"a";i:5;s:1:"b";s:1:"q";}s:4:"*d";s:1:"d";s:4:"Ae";s:5:"eeeee";}

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:
69.43 ms | 405 KiB | 9 Q