3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'start'; function recuperation_info_product_et_decrementation($reference, $qty, $isDeclinaison){ /* Fonction de récupèration et décrementation produit */ $product_infos = array(); $tables = array('product_attribute'); if($isDeclinaison === false) { array_unshift($tables, 'product'); } /*foreach($tables as $table) { //$query = 'SELECT * FROM `'._DB_PREFIX_.$table.'` WHERE `reference` = "'.$reference.'";'; //$result = Db::getInstance()->executeS($query); if($result !== false) { //$product_infos = $result[0]; //decremente_stock($product_infos['id_product'], $qty, $reference, $table); break; } }*/ return $product_infos; } echo 'done';

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.40.0150.00418.67
8.3.30.0080.00618.96
8.3.20.0070.00020.33
8.3.10.0000.00723.62
8.3.00.0030.00519.14
8.2.170.0070.00722.96
8.2.160.0070.00718.51
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.29
8.2.110.0060.00319.38
8.2.100.0080.00417.91
8.2.90.0060.00319.08
8.2.80.0000.00917.97
8.2.70.0000.00817.25
8.2.60.0080.00017.55
8.2.50.0070.00318.07
8.2.40.0050.00319.76
8.2.30.0060.00318.05
8.2.20.0020.00517.62
8.2.10.0060.00318.07
8.2.00.0000.01017.55
8.1.270.0000.01123.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.19
8.1.230.0040.00820.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.39
8.1.180.0030.00618.10
8.1.170.0060.00318.57
8.1.160.0040.00421.96
8.1.150.0040.00418.52
8.1.140.0080.00017.34
8.1.130.0000.00717.78
8.1.120.0070.00017.26
8.1.110.0000.00717.38
8.1.100.0000.00717.34
8.1.90.0040.00417.25
8.1.80.0040.00417.25
8.1.70.0030.00317.18
8.1.60.0040.00417.48
8.1.50.0030.00517.30
8.1.40.0000.00817.33
8.1.30.0040.00417.39
8.1.20.0070.00017.43
8.1.10.0000.00717.49
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0070.00017.15
8.0.260.0050.00317.13
8.0.250.0030.00316.88
8.0.240.0030.00316.85
8.0.230.0080.00016.72
8.0.220.0030.00316.78
8.0.210.0070.00016.79
8.0.200.0030.00316.67
8.0.190.0000.00716.83
8.0.180.0070.00016.84
8.0.170.0020.00516.68
8.0.160.0040.00416.67
8.0.150.0000.00816.74
8.0.140.0070.00016.66
8.0.130.0030.00313.14
8.0.120.0040.00416.72
8.0.110.0040.00416.85
8.0.100.0050.00316.65
8.0.90.0000.00816.59
8.0.80.0140.00316.79
8.0.70.0000.00716.88
8.0.60.0040.00416.58
8.0.50.0000.00716.73
8.0.30.0110.01116.89
8.0.20.0120.00617.40
8.0.10.0050.00216.79
8.0.00.0090.00816.64
7.4.330.0060.00015.00
7.4.320.0040.00416.35
7.4.300.0030.00316.39
7.4.290.0000.00716.39
7.4.280.0040.00416.43
7.4.270.0040.00416.26
7.4.260.0000.00716.44
7.4.250.0030.00616.27
7.4.240.0020.00516.46
7.4.230.0070.00016.56
7.4.220.0070.01016.36
7.4.210.0060.01116.42
7.4.200.0070.00016.58
7.4.190.0030.00316.43
7.4.160.0090.01316.46
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0110.00616.45
7.4.120.0050.01216.36
7.4.110.0070.01016.43
7.4.100.0120.00816.43
7.4.90.0140.00316.28
7.4.80.0150.00619.39
7.4.70.0100.00716.59
7.4.60.0100.00616.35
7.4.50.0020.00216.08
7.4.40.0120.00622.77
7.4.30.0110.00616.44
7.4.00.0100.00614.90
7.3.330.0000.00513.04
7.3.320.0000.00513.05
7.3.310.0040.00416.20
7.3.300.0040.00416.20
7.3.290.0090.00916.19
7.3.280.0090.00716.19
7.3.270.0120.00917.40
7.3.260.0060.01116.04
7.3.250.0100.00716.40
7.3.240.0080.00816.53
7.3.230.0140.00716.39
7.3.210.0060.01116.35
7.3.200.0130.00919.39
7.3.190.0070.01016.36
7.3.180.0060.00916.14
7.3.170.0040.01116.43
7.3.160.0080.00816.46
7.3.120.0080.00814.80
7.3.110.0030.01014.29
7.3.100.0000.01214.74
7.3.90.0140.00314.63
7.3.80.0040.00714.68
7.3.70.0030.00614.77
7.3.60.0080.00814.65
7.3.50.0030.01314.56
7.3.40.0070.00714.64
7.3.30.0040.00814.71
7.3.20.0000.00916.61
7.3.10.0040.01316.40
7.3.00.0070.00516.51
7.2.330.0000.01816.64
7.2.320.0070.01116.49
7.2.310.0030.01416.63
7.2.300.0070.01016.50
7.2.290.0120.00616.45
7.2.250.0060.01315.08
7.2.240.0120.00914.87
7.2.230.0030.01014.88
7.2.220.0040.01514.75
7.2.210.0060.00915.09
7.2.200.0030.00914.94
7.2.190.0070.00714.84
7.2.180.0030.01014.80
7.2.170.0090.00614.88
7.2.130.0190.00816.67
7.2.120.0220.00016.16
7.2.110.0140.00616.77
7.2.100.0110.01116.50
7.2.90.0060.01316.12
7.2.80.0080.00816.34
7.2.70.0130.00816.46
7.2.60.0130.00616.34
7.2.50.0160.00816.33
7.2.40.0110.00316.62
7.2.30.0120.00916.43
7.2.20.0070.01016.46
7.2.10.0140.00716.81
7.2.00.0110.00617.91
7.1.330.0140.00015.64
7.1.320.0000.01715.62
7.1.310.0030.01215.59
7.1.300.0130.00315.47
7.1.290.0030.01215.65
7.1.280.0030.00715.45
7.1.270.0000.01115.79
7.1.260.0040.01115.38
7.1.250.0140.00715.27
7.1.100.0320.00717.60
7.1.70.0110.00016.76
7.1.60.0100.01019.46
7.1.50.0030.01916.75
7.1.00.0100.07322.43
7.0.200.0060.00316.72
7.0.140.0100.06322.15
7.0.60.0130.08319.84
7.0.50.0030.05017.96
7.0.40.0030.08720.11
7.0.30.0170.04320.33
7.0.20.0270.04720.31
7.0.10.0070.06320.08
7.0.00.0170.06720.06
5.6.280.0000.07320.79
5.6.210.0070.08720.55
5.6.200.0070.08318.14
5.6.190.0170.04720.52
5.6.180.0230.04320.77
5.6.170.0200.04020.52
5.6.160.0030.08020.56
5.6.150.0030.08018.15
5.6.140.0070.07318.28
5.6.130.0070.08318.17
5.6.120.0170.06321.02
5.6.110.0070.06320.96
5.6.100.0070.04021.14
5.6.90.0000.08321.11
5.6.80.0000.05720.38
5.6.70.3130.03020.39
5.5.350.0030.08020.39
5.5.340.0100.08018.01
5.5.330.0030.07720.43
5.5.320.0200.05020.31
5.5.310.0330.06320.36
5.5.300.0070.04718.03
5.5.290.0000.04317.92
5.5.280.0100.03720.68
5.5.270.0130.06720.79
5.5.260.0000.05720.76
5.5.250.0030.08320.46
5.5.240.0200.05020.19
5.4.450.0970.04019.52
5.4.440.0600.05719.31
5.4.430.0530.06019.33
5.4.420.0570.05719.38
5.4.410.0530.05719.18
5.4.400.0630.05019.00
5.4.390.0830.06719.14
5.4.380.0270.06018.50
5.4.370.0370.04318.61
5.4.360.0470.04318.56
5.4.350.0470.04718.56
5.4.340.0430.04318.63
5.4.320.0050.03812.50
5.4.310.0070.03712.50
5.4.300.0050.03712.50
5.4.290.0070.04112.50
5.4.280.0080.03412.38
5.4.270.0060.03612.38
5.4.260.0060.03912.37
5.4.250.0070.03712.37
5.4.240.0050.03712.38
5.4.230.0080.03612.36
5.4.220.0060.03812.36
5.4.210.0090.03712.36
5.4.200.0060.04412.37
5.4.190.0080.03512.36
5.4.180.0100.04512.36
5.4.170.0090.05212.37
5.4.160.0060.04012.36
5.4.150.0070.03412.36
5.4.140.0110.03512.04
5.4.130.0030.06212.03
5.4.120.0110.04711.99
5.4.110.0100.05411.99
5.4.100.0080.04411.98
5.4.90.0130.04411.98
5.4.80.0070.05811.98
5.4.70.0110.04611.98
5.4.60.0100.04711.98
5.4.50.0090.05111.98
5.4.40.0070.04411.96
5.4.30.0080.04911.97
5.4.20.0070.04211.96
5.4.10.0090.05111.97
5.4.00.0120.04511.45
5.3.290.0050.04612.80
5.3.280.0120.04812.71
5.3.270.0070.04512.72
5.3.260.0080.04412.72
5.3.250.0070.05012.72
5.3.240.0090.04512.72
5.3.230.0090.04512.71
5.3.220.0110.05112.68
5.3.210.0090.05512.68
5.3.200.0090.05612.68
5.3.190.0140.04812.68
5.3.180.0090.05212.67
5.3.170.0100.04912.67
5.3.160.0080.03812.67
5.3.150.0100.03912.68
5.3.140.0070.04012.66
5.3.130.0080.05712.66
5.3.120.0170.05112.66
5.3.110.0100.05512.66
5.3.100.0070.05612.12
5.3.90.0120.05112.08
5.3.80.0090.04712.07
5.3.70.0100.04512.07
5.3.60.0100.03612.07
5.3.50.0070.03712.00
5.3.40.0060.04012.00
5.3.30.0070.03811.95
5.3.20.0070.03811.73
5.3.10.0070.03611.70
5.3.00.0110.04711.69
5.2.170.0050.0459.18
5.2.160.0050.0439.18
5.2.150.0080.0369.18
5.2.140.0090.0409.18
5.2.130.0030.0419.14
5.2.120.0090.0289.14
5.2.110.0060.0379.14
5.2.100.0060.0439.14
5.2.90.0070.0409.14
5.2.80.0050.0329.14
5.2.70.0090.0279.13
5.2.60.0040.0369.09
5.2.50.0100.0289.07
5.2.40.0080.0299.04
5.2.30.0050.0309.02
5.2.20.0070.0349.00
5.2.10.0100.0398.91
5.2.00.0090.0408.78
5.1.60.0040.0328.06
5.1.50.0030.0378.06
5.1.40.0070.0358.04
5.1.30.0080.0398.39
5.1.20.0050.0278.41
5.1.10.0080.0268.14
5.1.00.0060.0268.14
5.0.50.0050.0296.62
5.0.40.0050.0286.48
5.0.30.0050.0426.29
5.0.20.0040.0216.26
5.0.10.0000.0266.24
5.0.00.0040.0316.23
4.4.90.0040.0224.78
4.4.80.0030.0234.75
4.4.70.0050.0164.75
4.4.60.0050.0214.76
4.4.50.0040.0224.77
4.4.40.0040.0274.71
4.4.30.0040.0214.76
4.4.20.0020.0164.84
4.4.10.0030.0164.85
4.4.00.0040.0244.75
4.3.110.0010.0184.66
4.3.100.0030.0174.67
4.3.90.0020.0164.64
4.3.80.0030.0254.58
4.3.70.0040.0264.63
4.3.60.0050.0184.62
4.3.50.0050.0204.63
4.3.40.0030.0324.54
4.3.30.0020.0183.29
4.3.20.0020.0163.26
4.3.10.0020.0193.23
4.3.00.0070.01713.47

preferences:
40.72 ms | 400 KiB | 5 Q