3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Job { public array $options; public function __construct(public int $a, $options = []) {} } $job = new Job(1); echo serialize($job); // O:3:"Job":1:{s:7:"options";a:0:{}} echo ' '; var_dump(unserialize('O:3:"Job":1:{s:7:"options";a:0:{}}'));
Output for git.master_jit, git.master
O:3:"Job":1:{s:1:"a";i:1;} object(Job)#2 (1) { ["options"]=> array(0) { } ["a"]=> uninitialized(int) }

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