3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all( '/\[([\w]*?)\:([\w\W\s]*?)\]/' , '[email:optin|<u>Optin</u>]' , $matches); echo $class = "Frontburner_Tag_" . ucfirst( trim( strtolower( $matches[1][0] ) ) ); $values = explode( "|" , $matches[2][0] ); $tag = $this->values[0]; echo $tag;
Output for 7.0.0 - 7.1.0
Frontburner_Tag_Email Fatal error: Uncaught Error: Using $this when not in object context in /in/32NnT:7 Stack trace: #0 {main} thrown in /in/32NnT on line 7
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Frontburner_Tag_Email Fatal error: $this is null in /in/32NnT on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Frontburner_Tag_Email Fatal error: Using $this when not in object context in /in/32NnT on line 7
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Frontburner_Tag_Email Notice: Undefined variable: this in /in/32NnT on line 7