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] ) ) ) . "\n"; $values = explode( "|" , $matches[2][0] ); $tag = $values[0]; echo $tag . "\n"; echo "return" . ucfirst( trim( strtolower( $this->tag ) ) );
Output for 7.0.0 - 7.1.0
Frontburner_Tag_Email optin Fatal error: Uncaught Error: Using $this when not in object context in /in/ndcie:11 Stack trace: #0 {main} thrown in /in/ndcie on line 11
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Frontburner_Tag_Email optin Fatal error: $this is null in /in/ndcie on line 11
Process exited with code 255.
Output for 5.0.0 - 5.6.21
Frontburner_Tag_Email optin Fatal error: Using $this when not in object context in /in/ndcie on line 11
Process exited with code 255.
Output for 4.3.0 - 4.4.9
Frontburner_Tag_Email optin Notice: Undefined variable: this in /in/ndcie on line 11 return