3v4l.org

run code in 300+ PHP versions simultaneously
<?php $componentId = JComponentHelper::getComponent('com_comonentname')->id; $db = JFactory::getDbo(); $select = $db->getQuery(true) ->select($db->qn('params')) ->from($db->qn('#__extensions')) ->where($db->qn('extension_id') . ' = '. (int)$componentId); $db->setQuery($select); $object = json_decode($db->loadResult()); $object->your_param = "dev.com"; $newJson = json_encode($object); $update = $db->getQuery(true) ->update($db->qn('#__extensions')) ->set($db->qn('params') . " = '" . $db->q($newJson)) ->where($db->qn('extension_id') . ' = ' . (int)$componentId); $db->setQuery($update); $result = $db->execute();

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.0110.00418.40
8.3.50.0120.00716.69
8.3.40.0150.00018.79
8.3.30.0110.00418.75
8.3.20.0040.00420.81
8.3.10.0070.00020.13
8.3.00.0040.00423.66
8.2.180.0040.01116.63
8.2.170.0120.00322.96
8.2.160.0070.00720.53
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0150.00319.13
8.2.110.0080.00320.45
8.2.100.0090.00317.78
8.2.90.0060.00317.84
8.2.80.0080.00019.23
8.2.70.0030.00717.63
8.2.60.0060.00317.92
8.2.50.0060.00318.07
8.2.40.0080.00018.04
8.2.30.0060.00317.91
8.2.20.0000.00717.97
8.2.10.0040.00420.61
8.2.00.0080.00019.32
8.1.280.0110.00325.92
8.1.270.0000.00822.46
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00020.55
8.1.230.0040.00820.97
8.1.220.0000.00817.74
8.1.210.0060.00318.89
8.1.200.0080.00017.23
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0000.00918.86
8.1.160.0030.00518.78
8.1.150.0070.00018.79
8.1.140.0000.00818.82
8.1.130.0040.00420.00
8.1.120.0000.00717.23
8.1.110.0050.00317.32
8.1.100.0000.00717.34
8.1.90.0070.00017.34
8.1.80.0040.00417.25
8.1.70.0000.00717.37
8.1.60.0040.00417.36
8.1.50.0040.00417.48
8.1.40.0030.00617.50
8.1.30.0040.00417.63
8.1.20.0110.00417.55
8.1.10.0040.00417.39
8.1.00.0030.00617.36
8.0.300.0070.00019.93
8.0.290.0030.00616.75
8.0.280.0030.00318.41
8.0.270.0070.00017.09
8.0.260.0030.00318.34
8.0.250.0000.00716.94
8.0.240.0070.00016.98
8.0.230.0000.00816.88
8.0.220.0090.00216.84
8.0.210.0070.00016.87
8.0.200.0060.00016.86
8.0.190.0030.00516.93
8.0.180.0050.00316.81
8.0.170.0050.00316.85
8.0.160.0080.00016.82
8.0.150.0050.00516.84
8.0.140.0060.00316.78
8.0.130.0050.00013.36
8.0.120.0000.00816.91
8.0.110.0040.00416.82
8.0.100.0000.00716.79
8.0.90.0000.00816.81
8.0.80.0040.01416.90
8.0.70.0030.00316.69
8.0.60.0070.00016.82
8.0.50.0040.00416.86
8.0.30.0090.00916.96
8.0.20.0090.01017.09
8.0.10.0000.00716.91
8.0.00.0080.01316.69
7.4.330.0000.00615.55
7.4.320.0050.00216.41
7.4.300.0030.00316.60
7.4.290.0030.00316.53
7.4.280.0040.00316.56
7.4.270.0050.00216.60
7.4.260.0000.00716.43
7.4.250.0070.00016.41
7.4.240.0030.00516.54
7.4.230.0000.00716.30
7.4.220.0030.00516.63
7.4.210.0030.01116.47
7.4.200.0030.00316.49
7.4.160.0050.01216.44
7.4.130.0100.00716.54
7.4.120.0000.01916.36
7.4.110.0060.01816.64
7.4.100.0100.00716.36
7.4.90.0100.00716.48
7.4.80.0150.00919.39
7.4.70.0100.01016.37
7.4.60.0120.00416.37
7.4.50.0040.01416.36
7.4.40.0070.01116.73
7.4.10.0060.01014.80
7.4.00.0090.00814.99
7.3.330.0050.00013.12
7.3.320.0060.00013.03
7.3.310.0040.00416.31
7.3.300.0030.00316.21
7.3.290.0140.00316.34
7.3.280.0090.00616.30
7.3.260.0070.01016.39
7.3.240.0080.00916.41
7.3.230.0120.00416.25
7.3.210.0120.00416.34
7.3.200.0180.00316.46
7.3.190.0030.01916.54
7.3.180.0100.01016.32
7.3.170.0120.00616.30
7.3.160.0180.00316.34
7.3.130.0080.00414.67
7.3.120.0100.01014.81
7.3.110.0080.00814.78
7.3.100.0030.01014.70
7.3.90.0000.00914.50
7.3.80.0040.00814.83
7.3.70.0100.00314.84
7.3.60.0060.00614.86
7.3.50.0040.00914.58
7.3.40.0050.00814.74
7.3.30.0070.00914.77
7.3.20.0050.01015.77
7.3.10.0070.01115.69
7.3.00.0110.00815.67
7.2.330.0090.00916.38
7.2.320.0100.00716.38
7.2.310.0090.01316.55
7.2.300.0050.01416.41
7.2.290.0080.00816.54
7.2.260.0070.01414.96
7.2.250.0100.01014.88
7.2.240.0040.01114.86
7.2.230.0060.01014.78
7.2.220.0090.00614.93
7.2.210.0070.00714.69
7.2.200.0100.00614.74
7.2.190.0090.00614.95
7.2.180.0050.00814.86
7.2.170.0080.00514.94
7.2.160.0060.00814.85
7.2.150.0110.00515.91
7.2.140.0090.00315.76
7.2.130.0090.00915.77
7.2.120.0220.00815.90
7.2.110.0090.00715.73
7.2.100.0080.00815.88
7.2.90.0050.00815.98
7.2.80.0130.00015.93
7.2.70.0100.00716.00
7.2.60.0070.01115.82
7.2.50.0110.00716.04
7.2.40.0080.00815.85
7.2.30.0070.01415.87
7.2.20.0050.00915.65
7.2.10.0090.00815.68
7.2.00.0040.00915.86
7.1.330.0030.01015.54
7.1.320.0090.00915.68
7.1.310.0000.01215.72
7.1.300.0030.00615.65
7.1.290.0060.00315.65
7.1.280.0270.00514.76
7.1.270.0050.00814.66
7.1.260.0100.00814.57
7.1.250.0090.00314.79
7.1.240.0100.00315.71
7.1.230.0040.00715.72
7.1.220.0080.00615.64
7.1.210.0000.01415.66
7.1.200.0030.00915.66
7.1.190.0070.00315.78
7.1.180.0060.00615.67
7.1.170.0040.01115.29
7.1.160.0040.01115.75
7.1.150.0050.00315.73
7.1.140.0030.00715.66
7.1.130.0030.00915.73
7.1.120.0070.00715.76
7.1.110.0030.01015.77
7.1.100.0100.00315.60
7.1.90.0040.00715.76
7.1.80.0060.00615.41
7.1.70.0100.00015.52
7.1.60.0070.01015.52
7.1.50.0030.01315.78
7.1.40.0030.00715.44
7.1.30.0060.00615.67
7.1.20.0030.00715.36
7.1.10.0060.00615.59
7.1.00.0070.00315.74

preferences:
73.05 ms | 401 KiB | 5 Q