3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = serialize([]); var_dump($array, base64_encode($array), base64_encode('a:')); $object = serialize(new \stdClass()); var_dump($object, base64_encode($object), base64_encode('O:'));
Output for git.master, git.master_jit, rfc.property-hooks
string(6) "a:0:{}" string(8) "YTowOnt9" string(4) "YTo=" string(19) "O:8:"stdClass":0:{}" string(28) "Tzo4OiJzdGRDbGFzcyI6MDp7fQ==" string(4) "Tzo="

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:
108.04 ms | 405 KiB | 5 Q