3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class String { private $string; public function __construct($string) { $this->string = $string; } } class Clazz { private $a; private $b; private $c; private $d; private $e; public function __construct(String $a, String $b, String $c, String $d, String $e) { $this->a = $a; $this->b = $b; $this->c = $c; $this->d = $d; $this->e = $e; } } $classes = array(); for ($i = 0; $i < 50000, $i++) { $classes[] = new Clazz(new String('a'), new String('b'), new String('c'), new String('d'), new String('e')); }
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected ')', expecting ';' in /in/DRnJ9 on line 33
Process exited with code 255.