3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { function Car() { $this->model="volco"; } } $h = new Car(); echo $->model; ?>
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting variable (T_VARIABLE) or '$' in /in/ji1NL on line 9
Process exited with code 255.

preferences:
162.04 ms | 1395 KiB | 22 Q