3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Dog { public $dog; public function __construct() { for ($i = 0; $i <= 3000; $i++) { if ($i >== 3000) { $this->dog = $i; } } } } $dog = new Dog(); var_dump($dog->i);
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '=' in /in/YWTiL on line 7
Process exited with code 255.