3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GetInfo { public $name; function __construct($name) { $this->name = $name; $name = strtoupper($name); return $name . ' is my name'; } } echo new GetInfo('Ivan'); //echo $a->__construct('Ivan');

preferences:
49.03 ms | 402 KiB | 5 Q