3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* class Dog { public $dog; public function __construct() { for ($i = 0; $i <= 6000; $i++) { $this->dog = $i; } } } $dog = new Dog(); var_dump($dog->dog); */ for ($i = 0; $i <= 6000; $i++) { $dog = $i; } var_dump($dog);
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(6000)