3v4l.org

run code in 300+ PHP versions simultaneously
<?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; } }
Output for git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
74.01 ms | 401 KiB | 8 Q