3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Cheese\Topping\Please { class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $biz = 'bizValue'; } $foo = new Cheese\Topping\Please\Foo(); $arrayFoo = (array) $foo; $out = json_encode($arrayFoo); $out = preg_replace('/\\\u0000[*a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\\\u0000/', '', $out); $newArray = json_decode($out, true); var_dump($newArray); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Cheese\Topping\Please\Cheese\Topping\Please\Foo" not found in /in/54jgu:11 Stack trace: #0 {main} thrown in /in/54jgu on line 11
Process exited with code 255.

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