3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected $stuff; function __construct($foo){ if(!is_float($foo)) throw new TypeError("Not a float."); $this->stuff = $foo; } static function __set_state($data){ return new A($data['stuff']); } } $x = new A(0.0); eval(var_export($x, true) . ';');

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
196.31 ms | 3278 KiB | 11 Q