3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Wow { public Typed $thing = "not a sausage"; public function __construct($thing) { $this->thing = $thing; } } var_dump(new Wow("not a sausage"));
Output for 5.5.0 - 5.5.33, 5.6.0 - 5.6.19, 7.0.0 - 7.0.4
Parse error: syntax error, unexpected 'Typed' (T_STRING), expecting variable (T_VARIABLE) in /in/rEKuV on line 3
Process exited with code 255.

preferences:
156.47 ms | 1000 KiB | 7 Q