3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Prueba { protected $nombre; } $p = new Prueba(); echo $p->$nombre;
Output for 7.1.0
Notice: Undefined variable: nombre in /in/FTl0q on line 8 Notice: Undefined property: Prueba::$ in /in/FTl0q on line 8
Output for 7.0.0 - 7.0.14
Notice: Undefined variable: nombre in /in/FTl0q on line 8 Fatal error: Uncaught Error: Cannot access empty property in /in/FTl0q:8 Stack trace: #0 {main} thrown in /in/FTl0q on line 8
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Notice: Undefined variable: nombre in /in/FTl0q on line 8 Fatal error: Cannot access empty property in /in/FTl0q on line 8
Process exited with code 255.