3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ocType = new stdClass; $cmsTag = new stdClass; $cmsTag = getXstImage($cmsTag); if(!function_exists("getXstImage")){ function getXstImage($cmsTag){ global $cmsTag; // build class containing all data necessary to display image // therefor the image dimensions have to be determined if (0 < strlen($cmsTag->tag)) { $clientConfig = cRegistry::getClientConfig(cRegistry::getClientId()); $filename = str_replace($clientConfig["upl"]["htmlpath"], $clientConfig["upl"]["path"], $cmsTag->tag); list($imageWidth, $imageHeight) = getimagesize($filename); $image = new stdClass(); $image->src = $cmsTag->tag; $image->alt = $cmsTag->desc; $image->width = $imageWidth; $image->height = $imageHeight; $image->css = $css_class; } else { $image = NULL; } return $image; } }
based on 1nSt7
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function getXstImage() in /in/GE5Vr:5 Stack trace: #0 {main} thrown in /in/GE5Vr on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function getXstImage() in /in/GE5Vr on line 5
Process exited with code 255.