3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $F = new Foo(); $F = serialize($F); $F = str_replace('tabValue','new_tabValue',$F); $F = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $F); $F = unserialize($F); var_dump($F);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/ZtSUM on line 12 Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/ZtSUM on line 13 bool(false)

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:
42.33 ms | 405 KiB | 9 Q