3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a, $b, $c; public function __construct() { $this->a = 1, $this->b = 2, $this->c = 3; echo $this->a, $this->b, $this->c; } $t = new Test; // 123
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected ',' in /in/hdRHI on line 7
Process exited with code 255.

preferences:
192.05 ms | 1395 KiB | 64 Q