3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $bla = ''; public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo2(); $blubb("bla"); var_dump();
based on YGe4H
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/oeeqo on line 12 Warning: A non-numeric value encountered in /in/oeeqo on line 12 Warning: var_dump() expects at least 1 parameter, 0 given in /in/oeeqo on line 23
Output for 5.3.21 - 7.0.20
Warning: var_dump() expects at least 1 parameter, 0 given in /in/oeeqo on line 23