3v4l.org

run code in 500+ PHP versions simultaneously
<?php class UserPref { public $theme; public $lang; } $obj = new UserPref(); $obj->theme = new SplFileObject('/flag', 'r'); $obj->lang = "zh"; echo base64_encode(serialize($obj)); ?>
Output for git.master_jit, git.master
Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): open_basedir restriction in effect. File(/flag) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ASuYB:8 Stack trace: #0 /in/ASuYB(8): SplFileObject->__construct('/flag', 'r') #1 {main} thrown in /in/ASuYB on line 8
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:
49.83 ms | 766 KiB | 4 Q