3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = $_SERVER["REQUEST_URI"]; if (strpos($url, "multi-pdf") !== false) { $showIcon = " . esc_url( get_header_image() ) . " ; } else { $showIcon = "http://batchpdfmerger.com/images/icon.png" ; } if ( get_header_image() != '' ) { echo 'style="background-image: url($showIcon);"'; }
Output for 7.0.0 - 7.2.0
Notice: Undefined index: REQUEST_URI in /in/mYUKa on line 3 Fatal error: Uncaught Error: Call to undefined function get_header_image() in /in/mYUKa:10 Stack trace: #0 {main} thrown in /in/mYUKa on line 10
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Notice: Undefined index: REQUEST_URI in /in/mYUKa on line 3 Fatal error: Call to undefined function get_header_image() in /in/mYUKa on line 10
Process exited with code 255.