3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name; public function __wakeup() { if( property_exists( $this, 'n1ame' ) ) { throw new Exception('oh no this data is bad'); } } } try { unserialize('O:6:"Person":1:{s:5:"n1ame";s:4:"mark";}'); } catch( Exception $e ) { echo 'nope cant unserialize it: ' . $e->getMessage(); }
Output for git.master_jit, git.master, rfc.property-hooks
Deprecated: Creation of dynamic property Person::$n1ame is deprecated in /in/h8pss on line 17 nope cant unserialize it: oh no this data is bad

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