3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dumb { readonly int $unreliable; function __construct() { unset($this->unreliable); } function __get($key) { return random_int(0, 999); } } $rubbish = new Dumb; var_dump($rubbish->unreliable); var_dump($rubbish->unreliable);
Output for git.master
int(357) int(501)
Output for git.master_jit
int(933) int(824)

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:
27.6 ms | 406 KiB | 5 Q