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; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00716.61
8.3.50.0110.00417.93
8.3.40.0210.00019.02
8.3.30.0110.00418.67
8.3.20.0080.00020.34
8.3.10.0000.00823.49
8.3.00.0050.00319.50
8.2.180.0140.00317.00
8.2.170.0150.00622.96
8.2.160.0140.00019.20
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00317.50
8.2.120.0080.00026.35
8.2.110.0080.00322.25
8.2.100.0040.00718.04
8.2.90.0030.00619.04
8.2.80.0080.00017.97
8.2.70.0000.01117.50
8.2.60.0030.00917.80
8.2.50.0000.00818.07
8.2.40.0000.01019.45
8.2.30.0050.00220.66
8.2.20.0040.00417.62
8.2.10.0030.00518.11
8.2.00.0040.00418.06
8.1.280.0150.00025.92
8.1.270.0060.00322.09
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00022.61
8.1.230.0120.00017.55
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0040.00818.48
8.1.160.0030.00321.97
8.1.150.0000.00718.83
8.1.140.0030.00619.52
8.1.130.0030.00317.58
8.1.120.0070.00017.46
8.1.110.0040.00417.29
8.1.100.0040.00417.42
8.1.90.0060.00517.38
8.1.80.0020.00517.39
8.1.70.0030.00317.41
8.1.60.0050.00517.51
8.1.50.0030.00717.54
8.1.40.0050.00317.57
8.1.30.0040.00417.58
8.1.20.0000.00817.62
8.1.10.0100.00017.63
8.1.00.0070.00017.51
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.39
8.0.270.0010.00717.20
8.0.260.0000.00617.24
8.0.250.0000.00816.92
8.0.240.0000.00716.97
8.0.230.0050.00316.92
8.0.220.0000.00716.87
8.0.210.0000.00816.90
8.0.200.0030.00316.93
8.0.190.0040.00416.84
8.0.180.0040.00416.93
8.0.170.0060.00316.98
8.0.160.0050.00316.78
8.0.150.0050.00516.84
8.0.140.0000.00916.79
8.0.130.0060.00013.30
8.0.120.0070.00016.85
8.0.110.0000.00716.77
8.0.100.0000.00716.68
8.0.90.0030.00517.02
8.0.80.0000.01616.86
8.0.70.0080.00016.88
8.0.60.0040.00416.90
8.0.50.0030.00516.89
8.0.30.0140.00617.02
8.0.20.0120.00917.40
8.0.10.0040.00416.96
8.0.00.0050.01216.65
7.4.330.0050.00015.13
7.4.320.0000.00616.57
7.4.300.0030.00316.52
7.4.290.0030.00316.49
7.4.280.0000.00916.40
7.4.270.0040.00416.44
7.4.260.0070.00016.60
7.4.250.0060.00316.50
7.4.240.0020.00516.44
7.4.230.0030.00316.68
7.4.220.0070.01716.60
7.4.210.0090.00916.54
7.4.200.0030.00316.40
7.4.160.0080.00816.53
7.4.150.0150.00317.40
7.4.140.0150.00917.86
7.4.130.0090.00916.61
7.4.120.0090.00716.53
7.4.110.0090.00916.52
7.4.100.0110.01116.52
7.4.90.0040.01716.48
7.4.80.0120.00419.39
7.4.70.0100.01316.59
7.4.60.0070.01016.32
7.4.50.0060.00316.16
7.4.40.0080.01516.60
7.4.30.0030.01916.72
7.4.00.0050.00914.77
7.3.330.0000.00713.24
7.3.320.0030.00313.18
7.3.310.0070.00016.32
7.3.300.0040.00416.26
7.3.290.0040.01216.27
7.3.280.0110.00816.31
7.3.270.0100.00717.40
7.3.260.0140.00316.45
7.3.250.0080.01116.41
7.3.240.0090.00816.48
7.3.230.0060.01216.41
7.3.210.0090.00616.51
7.3.200.0080.00816.27
7.3.190.0060.01016.24
7.3.180.0100.00716.48
7.3.170.0130.00716.51
7.3.160.0030.01316.47
7.3.120.0080.00814.74
7.3.110.0080.01215.02
7.3.100.0150.00314.68
7.3.90.0000.01414.88
7.3.80.0070.01014.66
7.3.70.0060.00614.84
7.3.60.0040.01214.83
7.3.50.0060.00614.91
7.3.40.0030.00914.66
7.3.30.0060.00614.64
7.3.20.0060.00616.59
7.3.10.0030.01016.60
7.3.00.0050.00516.45
7.2.330.0060.01316.62
7.2.320.0110.01016.46
7.2.310.0030.01616.61
7.2.300.0060.01516.70
7.2.290.0170.00816.48
7.2.250.0060.00814.92
7.2.240.0100.00314.83
7.2.230.0090.00914.72
7.2.220.0100.00715.09
7.2.210.0070.01114.97
7.2.200.0070.00714.89
7.2.190.0080.00815.00
7.2.180.0040.01114.69
7.2.170.0030.01014.88
7.2.160.0100.00314.71
7.2.150.0080.00416.80
7.2.140.0040.00816.93
7.2.130.0100.00616.85
7.2.120.0040.01116.80
7.2.110.0030.01216.78
7.2.100.0000.01116.63
7.2.90.0040.00816.89
7.2.80.0030.01016.84
7.2.70.0040.01116.83
7.2.60.0070.00916.85
7.2.50.0060.01016.80
7.2.40.0060.00916.50
7.2.30.0040.01216.73
7.2.20.0040.01416.98
7.2.10.0040.00816.99
7.2.00.0200.00418.02
7.1.330.0030.01415.60
7.1.320.0000.01115.46
7.1.310.0050.00515.40
7.1.300.0040.01115.41
7.1.290.0000.01215.33
7.1.280.0070.00715.43
7.1.270.0030.01215.61
7.1.260.0060.00615.64
7.1.250.0030.01015.48
7.1.240.0070.00715.82
7.1.230.0040.01115.75
7.1.220.0090.00615.55
7.1.210.0060.00615.39
7.1.200.0040.00915.72
7.1.190.0050.00515.69
7.1.180.0060.00915.42
7.1.170.0060.00915.78
7.1.160.0040.00715.56
7.1.150.0070.00715.80
7.1.140.0090.00315.34
7.1.130.0000.00915.31
7.1.120.0030.00815.68
7.1.110.0060.00615.63
7.1.100.0060.00716.76
7.1.90.0100.00315.61
7.1.80.0040.01115.41
7.1.70.0090.00416.06
7.1.60.0040.00917.54
7.1.50.0080.01116.21
7.1.40.0060.00915.42
7.1.30.0000.01015.63
7.1.20.0000.01215.68
7.1.10.0060.00915.72
7.1.00.0060.04018.87
7.0.330.0040.00715.20
7.0.320.0070.00714.95
7.0.310.0030.01015.26
7.0.300.0030.01015.29
7.0.290.0060.00615.34
7.0.280.0130.00314.98
7.0.270.0070.00715.54
7.0.260.0030.00715.18
7.0.250.0060.00315.30
7.0.240.0060.00315.46
7.0.230.0000.01315.20
7.0.220.0030.00915.27
7.0.210.0000.01115.37
7.0.200.0070.01115.10
7.0.190.0140.00015.11
7.0.180.0090.00615.03
7.0.170.0060.00615.06
7.0.160.0030.00915.27
7.0.150.0000.00915.32
7.0.140.0090.00615.43
7.0.130.0030.01015.34
7.0.120.0000.00915.14
7.0.110.0000.01415.17
7.0.100.0110.00715.33
7.0.90.0060.01315.37
7.0.80.0030.00915.22
7.0.70.0110.00415.30
7.0.60.0050.02617.67
7.0.50.0120.03316.59
7.0.40.0060.02416.70
7.0.30.0110.02716.78
7.0.20.0170.04216.65
7.0.10.0070.04116.74
7.0.00.0080.02516.82
5.6.400.0000.01214.29
5.6.390.0040.00814.69
5.6.380.0000.01214.29
5.6.370.0000.00914.43
5.6.360.0060.00614.57
5.6.350.0060.00614.35
5.6.340.0060.00614.27
5.6.330.0060.00614.13
5.6.320.0060.00614.57
5.6.310.0040.00814.68
5.6.300.0090.00314.12
5.6.290.0070.00714.15
5.6.280.0040.02817.57
5.6.270.0070.01014.40
5.6.260.0100.00314.18
5.6.250.0040.01414.41
5.6.240.0070.00314.55
5.6.230.0030.00914.21
5.6.220.0100.00714.43
5.6.210.0020.03917.46
5.6.200.0070.04116.29
5.6.190.0020.02717.38
5.6.180.0150.04317.37
5.6.170.0120.02617.55
5.6.160.0110.04217.30
5.6.150.0070.04516.16
5.6.140.0100.03516.35
5.6.130.0000.03916.20
5.6.120.0080.03517.60
5.6.110.0090.04117.64
5.6.100.0120.03817.73
5.6.90.0080.04717.78
5.6.80.0020.05217.18
5.6.70.0050.00514.07
5.6.60.0030.01214.12
5.6.50.0030.00714.38
5.6.40.0000.01214.33
5.6.30.0000.01214.22
5.6.20.0000.01014.39
5.6.10.0060.00613.97
5.6.00.0040.00814.22
5.5.380.0060.00913.93
5.5.370.0090.00013.90
5.5.360.0060.01213.98
5.5.350.1210.01917.39
5.5.340.0070.02916.22
5.5.330.0120.04017.12
5.5.320.0140.02317.11
5.5.310.0170.03817.29
5.5.300.0120.03816.25
5.5.290.0050.04516.24
5.5.280.0030.04017.57
5.5.270.0100.02117.58
5.5.260.0080.04417.33
5.5.250.0050.04117.52
5.5.240.0060.04117.13
5.5.230.0000.01014.25
5.5.220.0040.00813.73
5.5.210.0090.00613.92
5.5.200.0110.00313.94
5.5.190.0150.00014.15
5.5.180.0030.00914.24
5.5.170.0030.00914.32
5.5.160.0030.00914.16
5.5.150.0060.00914.23
5.5.140.0040.00414.27
5.5.130.0000.00914.12
5.5.120.0060.01014.16
5.5.110.0070.00714.24
5.5.100.0060.00314.08
5.5.90.0070.00314.13
5.5.80.0000.00914.04
5.5.70.0000.01713.72
5.5.60.0080.00014.23
5.5.50.0040.01114.15
5.5.40.0110.00414.15
5.5.30.0030.00714.27
5.5.20.0040.00714.17
5.5.10.0110.00413.66
5.5.00.0000.01314.11

preferences:
51.69 ms | 400 KiB | 5 Q