3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ocType = new cTypeGenerator(); $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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Class "cTypeGenerator" not found in /in/1nSt7:3 Stack trace: #0 {main} thrown in /in/1nSt7 on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'cTypeGenerator' not found in /in/1nSt7:3 Stack trace: #0 {main} thrown in /in/1nSt7 on line 3
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Class 'cTypeGenerator' not found in /in/1nSt7 on line 3
Process exited with code 255.

preferences:
192.19 ms | 402 KiB | 217 Q