3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App\W\A\F\D\E\Q; class obj999 implements Serializable { private $data; public function __construct() { $this->data[] = "My private data1"; } public function serialize() { return serialize($this->data); } public function unserialize($data) { $this->data = unserialize($data); } public function getData() { return $this->data; } } $obj = new obj999; $ser = serialize($obj); print_r($ser); echo PHP_EOL; print_r(serialize(["My private data1"]));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Interface "App\W\A\F\D\E\Q\Serializable" not found in /in/u3JJT:5 Stack trace: #0 {main} thrown in /in/u3JJT on line 5
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:
53.26 ms | 401 KiB | 8 Q