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(); }

preferences:
23.78 ms | 405 KiB | 5 Q