3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(serialize( array( 'integrateShortcodeToScript' => " function integrate_shortcode_to_script( \$content, \$query ) { return do_shortcode( str_replace( 'query', addslashes( \$query ), $shortcode ) ); } add_filter( 'scraping_hub-before_shortcode', 'integrate_shortcode_to_script', 10, 2 ); " )));
Output for 7.0.0 - 7.3.0beta1
Notice: Undefined variable: shortcode in /in/l8tVK on line 7 a:1:{s:26:"integrateShortcodeToScript";s:241:" function integrate_shortcode_to_script( $content, $query ) { return do_shortcode( str_replace( 'query', addslashes( $query ), ) ); } add_filter( 'scraping_hub-before_shortcode', 'integrate_shortcode_to_script', 10, 2 ); ";}
Output for 5.6.0 - 5.6.25
Notice: Undefined variable: shortcode in /in/l8tVK on line 10 a:1:{s:26:"integrateShortcodeToScript";s:241:" function integrate_shortcode_to_script( $content, $query ) { return do_shortcode( str_replace( 'query', addslashes( $query ), ) ); } add_filter( 'scraping_hub-before_shortcode', 'integrate_shortcode_to_script', 10, 2 ); ";}