3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MinhaClasse { public $atributo1 = "Este Valor"; function getEste() { return $this->atributo1; } function getAquele($param) { return "\n$param"; } } $obj = new MinhaClasse(); echo $obj->getEste(); echo MinhaClasse::getAquele("Meu Valor");
Output for 7.0.0 - 7.2.0
Este Valor Deprecated: Non-static method MinhaClasse::getAquele() should not be called statically in /in/EpOuE on line 14 Meu Valor
Output for 5.3.20 - 5.6.28
Este Valor Strict Standards: Non-static method MinhaClasse::getAquele() should not be called statically in /in/EpOuE on line 14 Meu Valor