3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($this->params['class']) // getParams and setParams only if something to add { $app = JFactory::getApplication(); $pageClass = $app->getParams()['pageclass_sfx']; if (!empty($pageClass)) // isset and not an empty string { $pageClass .= ' ' . $this->params['class']; // append new class } else { $pageClass = $this->params['class']; // declare new class } $app->setParams($pageClass); }

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.0150.00018.30
8.3.50.0100.01018.04
8.3.40.0070.01418.79
8.3.30.0160.00318.66
8.3.20.0040.00421.73
8.3.10.0070.00020.30
8.3.00.0030.00523.60
8.2.180.0030.01818.29
8.2.170.0110.00322.96
8.2.160.0030.01019.34
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0050.00226.16
8.2.120.0050.00326.16
8.2.110.0060.00319.38
8.2.100.0090.00317.91
8.2.90.0090.00018.22
8.2.80.0040.00417.97
8.2.70.0080.00017.80
8.2.60.0040.00418.09
8.2.50.0000.00918.10
8.2.40.0050.00319.17
8.2.30.0040.00419.23
8.2.20.0040.00417.90
8.2.10.0000.00719.04
8.2.00.0040.00419.10
8.1.280.0130.00325.92
8.1.270.0030.00722.33
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00319.09
8.1.230.0030.00820.85
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00417.21
8.1.190.0040.00517.22
8.1.180.0040.00418.10
8.1.170.0060.00318.57
8.1.160.0000.00718.71
8.1.150.0000.00718.75
8.1.140.0050.00222.01
8.1.130.0000.00717.32
8.1.120.0000.00717.27
8.1.110.0040.00417.30
8.1.100.0040.00417.29
8.1.90.0070.00017.21
8.1.80.0000.00817.32
8.1.70.0050.00317.32
8.1.60.0000.00817.45
8.1.50.0030.00517.39
8.1.40.0030.00617.45
8.1.30.0080.00017.49
8.1.20.0080.00017.53
8.1.10.0000.00717.48
8.1.00.0040.00417.40
8.0.300.0040.00419.89
8.0.290.0070.00016.75
8.0.280.0000.00718.29
8.0.270.0000.00716.80
8.0.260.0070.00016.69
8.0.250.0050.00216.93
8.0.240.0070.00016.84
8.0.230.0000.00716.86
8.0.220.0000.00716.94
8.0.210.0000.00816.90
8.0.200.0000.00716.81
8.0.190.0090.00316.92
8.0.180.0040.00416.95
8.0.170.0030.00616.91
8.0.160.0000.01116.83
8.0.150.0050.00216.89
8.0.140.0070.00016.82
8.0.130.0030.00313.32
8.0.120.0040.00416.75
8.0.110.0030.00716.77
8.0.100.0050.00316.75
8.0.90.0000.00816.77
8.0.80.0060.00916.85
8.0.70.0000.00716.69
8.0.60.0050.00316.71
8.0.50.0040.00416.76
8.0.30.0120.00516.92
8.0.20.0120.00917.06
8.0.10.0040.00316.83
8.0.00.0120.01116.65
7.4.330.0000.00515.55
7.4.320.0060.00016.37
7.4.300.0070.00016.44
7.4.290.0040.00416.37
7.4.280.0040.00416.46
7.4.270.0070.00016.50
7.4.260.0030.00316.43
7.4.250.0070.00016.46
7.4.240.0020.00516.43
7.4.230.0000.00716.61
7.4.220.0050.00116.46
7.4.210.0040.01116.63
7.4.200.0030.00316.29
7.4.140.0120.01217.86
7.4.130.0090.00916.37
7.4.120.0100.00616.51
7.4.110.0060.01216.57
7.4.100.0040.01316.38
7.4.90.0160.00816.62
7.4.80.0180.00619.39
7.4.70.0090.00916.43
7.4.60.0060.00916.30
7.4.50.0090.00916.34
7.4.40.0100.01416.63
7.4.10.0110.00314.79
7.4.00.0100.00714.90
7.3.330.0030.00313.02
7.3.320.0000.00613.18
7.3.310.0030.00316.35
7.3.300.0030.00316.15
7.3.290.0030.00316.25
7.3.280.0070.00716.20
7.3.260.0080.00916.34
7.3.240.0090.00916.34
7.3.230.0120.00916.46
7.3.210.0100.00716.19
7.3.200.0110.00516.38
7.3.190.0100.01316.34
7.3.180.0100.00716.29
7.3.170.0040.01216.59
7.3.160.0060.00916.26
7.3.130.0070.01114.78
7.3.120.0100.00714.77
7.3.110.0050.01314.62
7.3.100.0030.00914.46
7.3.90.0070.00714.50
7.3.80.0080.00614.85
7.3.70.0050.00914.67
7.3.60.0040.00814.83
7.3.50.0060.00614.78
7.3.40.0070.00814.65
7.3.30.0060.00914.64
7.3.20.0080.00716.04
7.3.10.0050.01115.87
7.3.00.0080.00716.07
7.2.330.0060.01116.39
7.2.320.0060.01316.66
7.2.310.0100.00716.34
7.2.300.0170.00716.58
7.2.290.0100.00716.45
7.2.260.0100.01014.85
7.2.250.0040.01414.90
7.2.240.0030.01014.72
7.2.230.0100.00715.09
7.2.220.0060.00515.13
7.2.210.0070.00314.76
7.2.200.0080.00814.99
7.2.190.0040.00814.99
7.2.180.0080.00614.92
7.2.170.0090.00614.89
7.2.160.0050.01015.01
7.2.150.0070.00716.34
7.2.140.0070.01316.19
7.2.130.0200.00716.21
7.2.120.0090.00816.22
7.2.110.0080.01016.28
7.2.100.0040.01016.23
7.2.90.0090.00716.37
7.2.80.0110.00616.18
7.2.70.0070.00816.09
7.2.60.0100.00516.23
7.2.50.0100.00716.19
7.2.40.0080.00816.30
7.2.30.0090.01016.24
7.2.20.0100.00616.22
7.2.10.0070.00716.15
7.2.00.0070.00816.21
7.1.330.0060.00615.71
7.1.320.0070.00515.64
7.1.310.0050.00815.57
7.1.300.0110.00215.01
7.1.290.0090.00715.03
7.1.280.0410.00715.03
7.1.270.0060.00814.93
7.1.260.0100.00615.09
7.1.250.0060.01014.91
7.1.240.0090.00015.32
7.1.230.0080.00315.42
7.1.220.0030.00815.74
7.1.210.0060.00915.38
7.1.200.0030.01015.72
7.1.190.0030.00615.48
7.1.180.0030.01415.64
7.1.170.0100.00715.61
7.1.160.0060.00915.73
7.1.150.0000.01215.54
7.1.140.0000.01315.46
7.1.130.0080.00415.71
7.1.120.0000.01415.67
7.1.110.0140.00015.34
7.1.100.0030.01015.77
7.1.90.0030.01515.57
7.1.80.0030.00715.44
7.1.70.0030.00615.70
7.1.60.0000.01715.62
7.1.50.0040.00815.68
7.1.40.0030.01015.67
7.1.30.0030.01215.70
7.1.20.0070.00415.50
7.1.10.0030.01015.66
7.1.00.0030.01215.51

preferences:
64.08 ms | 401 KiB | 5 Q