3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test{ public $test = "toto"; private $esaegaegt = "togaegegto"; public function jsencode(){ return json_encode(serialize($this)); } } $a = new test(); echo serialize($a);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
O:4:"test":2:{s:4:"test";s:4:"toto";s:15:"testesaegaegt";s:10:"togaegegto";}