3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'start'; function recuperation_info_product_et_decrementation($reference, $stock_fichier, $isDeclinaison){ /* Fonction de récupèration et décrementation produit */ global $version_sup_egale_1531; $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.60.0110.00318.16
8.3.50.0090.00721.88
8.3.40.0040.01118.58
8.3.30.0100.00318.91
8.3.20.0030.00320.16
8.3.10.0070.00023.70
8.3.00.0050.00319.13
8.2.180.0090.00616.75
8.2.170.0040.01122.96
8.2.160.0100.01020.53
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.11
8.2.110.0040.00422.26
8.2.100.0120.00017.66
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0000.01217.68
8.2.50.0050.00518.07
8.2.40.0040.00418.03
8.2.30.0040.00417.96
8.2.20.0050.00317.59
8.2.10.0030.00717.95
8.2.00.0040.00717.47
8.1.280.0000.01425.92
8.1.270.0000.00822.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0090.00319.05
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00817.29
8.1.180.0070.00318.10
8.1.170.0030.00618.42
8.1.160.0040.00422.07
8.1.150.0050.00218.55
8.1.140.0040.00417.35
8.1.130.0030.00317.80
8.1.120.0040.00417.28
8.1.110.0000.00717.34
8.1.100.0070.00017.39
8.1.90.0040.00417.26
8.1.80.0000.01017.23
8.1.70.0000.00717.27
8.1.60.0000.00917.44
8.1.50.0040.00417.43
8.1.40.0080.00017.46
8.1.30.0050.00317.52
8.1.20.0000.00817.51
8.1.10.0040.00417.52
8.1.00.0070.00017.30
8.0.300.0070.00018.90
8.0.290.0040.00417.18
8.0.280.0080.00018.42
8.0.270.0080.00017.11
8.0.260.0000.00717.23
8.0.250.0030.00316.92
8.0.240.0030.00316.79
8.0.230.0020.00516.86
8.0.220.0000.00716.83
8.0.210.0080.00016.70
8.0.200.0030.00316.74
8.0.190.0080.00016.89
8.0.180.0030.00316.84
8.0.170.0040.00416.76
8.0.160.0040.00416.91
8.0.150.0030.00316.65
8.0.140.0050.00216.83
8.0.130.0000.00613.23
8.0.120.0000.00716.73
8.0.110.0000.00716.85
8.0.100.0040.00416.75
8.0.90.0070.00016.79
8.0.80.0030.01216.87
8.0.70.0030.00316.59
8.0.60.0000.00716.69
8.0.50.0070.00016.71
8.0.30.0160.00616.90
8.0.20.0120.00617.40
8.0.10.0050.00216.96
8.0.00.0060.01216.65
7.4.330.0020.00215.00
7.4.320.0000.00616.44
7.4.300.0070.00016.38
7.4.290.0030.00316.39
7.4.280.0040.00416.41
7.4.270.0030.00316.50
7.4.260.0000.00716.36
7.4.250.0070.00016.25
7.4.240.0020.00516.37
7.4.230.0040.00416.57
7.4.220.0100.00616.33
7.4.210.0060.00916.52
7.4.200.0070.00016.29
7.4.190.0040.00416.59
7.4.160.0090.00616.42
7.4.150.0160.00617.40
7.4.140.0100.00717.86
7.4.130.0090.00816.36
7.4.120.0100.00616.44
7.4.110.0070.01116.41
7.4.100.0030.01316.43
7.4.90.0080.01116.41
7.4.80.0130.00619.39
7.4.70.0000.01616.38
7.4.60.0100.00716.54
7.4.50.0040.00416.36
7.4.40.0120.00622.77
7.4.30.0120.01216.50
7.4.00.0000.01414.82
7.3.330.0050.00013.20
7.3.320.0000.00513.13
7.3.310.0030.00416.28
7.3.300.0030.00316.06
7.3.290.0120.00616.19
7.3.280.0080.00916.14
7.3.270.0070.01017.40
7.3.260.0150.00316.48
7.3.250.0100.01216.19
7.3.240.0110.01416.41
7.3.230.0080.01216.43
7.3.210.0150.00416.06
7.3.200.0110.01119.39
7.3.190.0120.00616.52
7.3.180.0130.00316.30
7.3.170.0100.00516.27
7.3.160.0030.01216.18
7.3.120.0060.00614.62
7.2.330.0060.00916.38
7.2.320.0090.01016.64
7.2.310.0060.01316.61
7.2.300.0100.00616.70
7.2.290.0070.01016.41
7.2.80.0000.01516.46
7.2.60.0070.00716.78
7.2.00.0070.01119.28
7.1.200.0070.00415.68
7.1.100.0100.00717.96
7.1.70.0000.01016.66
7.1.60.0110.01519.46
7.1.50.0060.00916.60
7.1.00.0000.08022.32
7.0.200.0000.00716.71
7.0.140.0070.07022.23
7.0.60.0030.07019.97
7.0.50.0100.04017.89
7.0.40.0200.07720.11
7.0.30.0370.07320.34
7.0.20.0130.04720.15
7.0.10.0000.08020.16
7.0.00.0100.08720.27
5.6.280.0100.06321.00
5.6.210.0070.06720.47
5.6.200.0000.06318.12
5.6.190.0030.08320.61
5.6.180.0170.07320.34
5.6.170.0200.08720.44
5.6.160.0070.07020.44
5.6.150.0030.03718.25
5.6.140.0130.05718.12
5.6.130.0030.08018.26
5.6.120.0200.06720.95
5.6.110.0100.08020.96
5.6.100.0030.04020.99
5.6.90.0070.05721.10
5.6.80.0100.08020.53
5.6.70.4570.03720.38
5.5.350.0000.07320.53
5.5.340.0000.05318.09
5.5.330.0070.04020.26
5.5.320.0270.03020.34
5.5.310.0330.05020.28
5.5.300.0100.04018.07
5.5.290.0000.04718.04
5.5.280.0070.07020.85
5.5.270.0170.08020.76
5.5.260.0100.07720.73
5.5.250.0100.07720.59
5.5.240.0330.06020.37
5.4.450.0270.06019.59
5.4.440.1070.08319.55
5.4.430.0670.06319.46
5.4.420.0800.05319.31
5.4.410.0830.05319.41
5.4.400.0170.05319.15
5.4.390.0530.06019.15
5.4.380.0400.07018.57
5.4.370.0300.06018.76
5.4.360.0370.04718.61
5.4.350.0200.06018.80
5.4.340.0300.05718.84
5.4.320.0060.04512.51
5.4.310.0090.04012.51
5.4.300.0100.06012.51
5.4.290.0080.04512.50
5.4.280.0060.04812.37
5.4.270.0060.04012.38
5.4.260.0100.04612.38
5.4.250.0080.04612.38
5.4.240.0050.04012.37
5.4.230.0080.03612.37
5.4.220.0090.03312.37
5.4.210.0070.03612.36
5.4.200.0060.03812.36
5.4.190.0100.04712.37
5.4.180.0090.04112.36
5.4.170.0070.03812.38
5.4.160.0080.03512.37
5.4.150.0080.03712.36
5.4.140.0050.04612.05
5.4.130.0070.03612.04
5.4.120.0070.03511.99
5.4.110.0030.03911.99
5.4.100.0060.03811.99
5.4.90.0060.03811.98
5.4.80.0080.04911.99
5.4.70.0100.04611.99
5.4.60.0080.05111.99
5.4.50.0060.04211.98
5.4.40.0100.04511.97
5.4.30.0100.05211.97
5.4.20.0070.03711.97
5.4.10.0060.03711.97
5.4.00.0070.03811.46
5.3.290.0050.04412.80
5.3.280.0050.04312.71
5.3.270.0070.05112.72
5.3.260.0200.04512.72
5.3.250.0120.04812.72
5.3.240.0130.05112.72
5.3.230.0100.06012.71
5.3.220.0120.04412.68
5.3.210.0150.05112.68
5.3.200.0120.05512.68
5.3.190.0040.04212.68
5.3.180.0100.03512.68
5.3.170.0070.03912.66
5.3.160.0070.03912.67
5.3.150.0090.03812.67
5.3.140.0120.04112.66
5.3.130.0060.04612.66
5.3.120.0090.03812.65
5.3.110.0090.04412.65
5.3.100.0080.03412.12
5.3.90.0070.03812.08
5.3.80.0070.03712.07
5.3.70.0070.03712.07
5.3.60.0080.04212.06
5.3.50.0060.03812.00
5.3.40.0060.03912.00
5.3.30.0080.03811.95
5.3.20.0080.03911.74
5.3.10.0050.04911.70
5.3.00.0080.04811.70
5.2.170.0080.0399.18
5.2.160.0050.0339.19
5.2.150.0060.0369.18
5.2.140.0080.0399.18
5.2.130.0060.0399.14
5.2.120.0070.0349.14
5.2.110.0070.0399.15
5.2.100.0070.0419.15
5.2.90.0090.0389.14
5.2.80.0090.0399.14
5.2.70.0070.0429.14
5.2.60.0060.0429.09
5.2.50.0070.0449.07
5.2.40.0090.0359.04
5.2.30.0070.0419.02
5.2.20.0060.0399.00
5.2.10.0070.0398.92
5.2.00.0120.0378.79
5.1.60.0070.0348.06
5.1.50.0090.0338.07
5.1.40.0080.0348.05
5.1.30.0050.0438.39
5.1.20.0040.0378.42
5.1.10.0070.0348.14
5.1.00.0090.0348.14
5.0.50.0060.0276.63
5.0.40.0040.0316.50
5.0.30.0070.0456.30
5.0.20.0080.0246.28
5.0.10.0090.0276.26
5.0.00.0050.0406.25
4.4.90.0060.0194.78
4.4.80.0040.0214.75
4.4.70.0040.0224.75
4.4.60.0060.0224.75
4.4.50.0050.0234.77
4.4.40.0050.0284.71
4.4.30.0020.0234.76
4.4.20.0070.0184.84
4.4.10.0030.0224.85
4.4.00.0040.0324.76
4.3.110.0040.0224.67
4.3.100.0060.0164.66
4.3.90.0070.0154.63
4.3.80.0030.0284.59
4.3.70.0020.0184.63
4.3.60.0050.0144.63
4.3.50.0000.0194.63
4.3.40.0050.0274.53
4.3.30.0010.0183.29
4.3.20.0030.0173.27
4.3.10.0030.0223.24
4.3.00.0230.01313.47

preferences:
47.45 ms | 400 KiB | 5 Q