3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $w = 'wonderous'; $z = 'a thing of beauty is ' . strtoupper($w); $o = new stdClass; $o->$p = $z; echo "{$o->$p}\n"; echo $o->$p,"\n";
based on afPqT
Output for 7.1.0 - 7.2.0
Notice: Undefined variable: p in /in/Je4ht on line 5 Notice: Undefined variable: p in /in/Je4ht on line 6 a thing of beauty is WONDEROUS Notice: Undefined variable: p in /in/Je4ht on line 7 a thing of beauty is WONDEROUS
Output for 7.0.0 - 7.0.20
Notice: Undefined variable: p in /in/Je4ht on line 5 Fatal error: Uncaught Error: Cannot access empty property in /in/Je4ht:5 Stack trace: #0 {main} thrown in /in/Je4ht on line 5
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Undefined variable: p in /in/Je4ht on line 5 Fatal error: Cannot access empty property in /in/Je4ht on line 5
Process exited with code 255.