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.60.0070.01416.21
8.3.50.0040.01221.88
8.3.40.0110.00318.71
8.3.30.0050.00819.09
8.3.20.0000.00720.28
8.3.10.0030.00523.64
8.3.00.0040.00419.10
8.2.180.0110.00416.38
8.2.170.0150.00322.96
8.2.160.0030.01020.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0000.00722.27
8.2.110.0060.01022.20
8.2.100.0110.00017.72
8.2.90.0000.00819.13
8.2.80.0000.00817.97
8.2.70.0080.00317.25
8.2.60.0080.00017.68
8.2.50.0060.00318.07
8.2.40.0000.00919.75
8.2.30.0000.00718.01
8.2.20.0040.00417.63
8.2.10.0030.00617.81
8.2.00.0000.00917.60
8.1.280.0070.00725.92
8.1.270.0040.00423.86
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0000.00923.91
8.1.230.0090.00319.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00917.28
8.1.180.0030.00918.10
8.1.170.0000.00818.58
8.1.160.0000.00721.88
8.1.150.0000.00718.54
8.1.140.0040.00417.30
8.1.130.0000.00717.75
8.1.120.0040.00317.28
8.1.110.0020.00517.35
8.1.100.0000.00717.23
8.1.90.0050.00317.30
8.1.80.0000.00717.21
8.1.70.0030.00317.13
8.1.60.0030.00517.37
8.1.50.0000.00817.43
8.1.40.0040.00417.40
8.1.30.0030.00517.52
8.1.20.0000.00817.50
8.1.10.0000.00817.35
8.1.00.0000.00717.32
8.0.300.0040.00420.64
8.0.290.0040.00417.18
8.0.280.0070.00018.33
8.0.270.0070.00017.19
8.0.260.0050.00317.24
8.0.250.0040.00416.83
8.0.240.0070.00016.73
8.0.230.0030.00316.77
8.0.220.0040.00416.62
8.0.210.0040.00416.67
8.0.200.0030.00316.82
8.0.190.0080.00016.82
8.0.180.0000.00716.80
8.0.170.0040.00416.79
8.0.160.0040.00416.67
8.0.150.0030.00316.76
8.0.140.0000.00816.75
8.0.130.0000.00513.16
8.0.120.0000.00816.74
8.0.110.0000.00716.78
8.0.100.0060.00316.55
8.0.90.0040.00416.60
8.0.80.0060.01116.84
8.0.70.0080.00016.61
8.0.60.0070.00016.72
8.0.50.0000.00816.66
8.0.30.0070.01217.10
8.0.20.0100.00817.40
8.0.10.0070.00016.96
8.0.00.0030.01416.49
7.4.330.0050.00015.00
7.4.320.0000.00616.48
7.4.300.0030.00316.29
7.4.290.0040.00416.40
7.4.280.0040.00416.45
7.4.270.0030.00316.48
7.4.260.0040.00416.36
7.4.250.0080.00016.35
7.4.240.0020.00516.39
7.4.230.0030.00316.51
7.4.220.0070.01116.51
7.4.210.0090.00816.45
7.4.200.0000.00716.50
7.4.190.0000.00716.54
7.4.160.0100.01016.39
7.4.150.0130.00317.40
7.4.140.0170.00717.86
7.4.130.0100.00616.35
7.4.120.0150.00516.50
7.4.110.0000.01716.56
7.4.100.0060.01316.35
7.4.90.0090.00916.18
7.4.80.0030.01919.39
7.4.70.0110.00516.39
7.4.60.0040.01316.53
7.4.50.0040.00416.48
7.4.40.0120.00622.77
7.4.30.0080.01516.58
7.4.00.0030.01214.77
7.3.330.0060.00013.13
7.3.320.0000.00613.13
7.3.310.0080.00016.20
7.3.300.0030.00316.18
7.3.290.0070.00716.24
7.3.280.0090.00816.13
7.3.270.0060.01017.40
7.3.260.0070.01516.34
7.3.250.0090.01316.29
7.3.240.0120.00416.54
7.3.230.0090.00916.44
7.3.210.0030.01416.46
7.3.200.0090.01219.39
7.3.190.0120.00616.23
7.3.180.0060.01016.33
7.3.170.0040.01116.27
7.3.160.0100.01016.13
7.3.120.0120.00014.56
7.2.330.0080.01016.32
7.2.320.0150.00916.27
7.2.310.0100.00616.43
7.2.300.0040.01216.39
7.2.290.0100.00716.55
7.2.00.0130.00019.03
7.1.100.0440.00717.96
7.1.70.0000.01116.84
7.1.60.0100.01419.46
7.1.50.0040.01516.75
7.1.00.0030.07722.31
7.0.200.0100.00016.60
7.0.140.0030.07021.95
7.0.60.0130.07019.95
7.0.50.0030.04017.87
7.0.40.0100.04720.40
7.0.30.0270.07720.18
7.0.20.0230.06020.07
7.0.10.0130.07320.33
7.0.00.0000.06020.16
5.6.280.0030.07321.00
5.6.210.0170.06720.63
5.6.200.0070.08318.14
5.6.190.0070.08320.52
5.6.180.0270.07720.68
5.6.170.0200.05020.62
5.6.160.0000.04720.62
5.6.150.0000.04018.17
5.6.140.0030.04318.17
5.6.130.0070.08318.11
5.6.120.0030.08720.98
5.6.110.0130.05021.01
5.6.100.0100.08020.96
5.6.90.0100.08320.98
5.6.80.0130.05720.41
5.6.70.4230.04320.29
5.5.350.0000.08720.43
5.5.340.0030.05318.02
5.5.330.0070.05020.27
5.5.320.0370.07020.27
5.5.310.0430.06020.35
5.5.300.0030.03717.98
5.5.290.0000.06017.97
5.5.280.0000.05720.88
5.5.270.0130.07320.96
5.5.260.0130.06720.77
5.5.250.0130.06320.70
5.5.240.0130.04020.23
5.4.450.0230.05319.61
5.4.440.0070.06319.45
5.4.430.0730.05019.57
5.4.420.0530.05719.30
5.4.410.0470.06719.31
5.4.400.0800.05019.29
5.4.390.0170.07018.84
5.4.380.0430.05018.75
5.4.370.0430.08018.76
5.4.360.0470.06018.75
5.4.350.0330.07718.45
5.4.340.0430.05018.75
5.4.320.0080.04512.50
5.4.310.0070.03812.50
5.4.300.0080.04112.50
5.4.290.0110.03912.50
5.4.280.0040.04712.37
5.4.270.0080.04612.37
5.4.260.0080.05312.37
5.4.250.0090.05212.38
5.4.240.0070.05212.37
5.4.230.0090.05312.37
5.4.220.0050.04012.36
5.4.210.0080.04912.36
5.4.200.0070.04112.36
5.4.190.0070.03712.36
5.4.180.0090.03512.36
5.4.170.0100.04712.37
5.4.160.0090.03612.36
5.4.150.0070.03612.36
5.4.140.0080.03712.04
5.4.130.0060.03712.03
5.4.120.0110.03611.99
5.4.110.0070.03811.98
5.4.100.0070.03911.98
5.4.90.0090.03911.98
5.4.80.0080.04811.98
5.4.70.0170.04011.98
5.4.60.0110.04811.98
5.4.50.0080.04111.98
5.4.40.0090.04911.97
5.4.30.0110.04611.97
5.4.20.0090.04911.96
5.4.10.0070.03411.97
5.4.00.0070.05411.45
5.3.290.0040.04912.80
5.3.280.0060.04012.71
5.3.270.0090.05412.73
5.3.260.0080.05412.72
5.3.250.0140.04712.72
5.3.240.0110.04412.72
5.3.230.0100.04912.71
5.3.220.0110.04812.68
5.3.210.0070.05312.68
5.3.200.0110.04812.68
5.3.190.0070.03912.68
5.3.180.0090.04312.67
5.3.170.0090.03712.67
5.3.160.0070.03912.67
5.3.150.0090.03712.68
5.3.140.0050.04012.66
5.3.130.0110.04612.66
5.3.120.0080.05612.66
5.3.110.0130.03812.66
5.3.100.0060.03812.12
5.3.90.0110.03312.08
5.3.80.0050.03912.07
5.3.70.0090.05112.07
5.3.60.0090.03712.06
5.3.50.0080.04512.00
5.3.40.0060.03612.00
5.3.30.0090.04011.95
5.3.20.0090.03211.73
5.3.10.0030.03811.70
5.3.00.0080.03611.69
5.2.170.0050.0329.18
5.2.160.0050.0339.18
5.2.150.0050.0339.18
5.2.140.0060.0339.18
5.2.130.0060.0359.14
5.2.120.0080.0379.14
5.2.110.0030.0349.14
5.2.100.0040.0319.14
5.2.90.0070.0289.14
5.2.80.0040.0319.14
5.2.70.0090.0389.14
5.2.60.0040.0319.09
5.2.50.0040.0339.07
5.2.40.0040.0339.04
5.2.30.0040.0319.02
5.2.20.0040.0309.00
5.2.10.0040.0308.92
5.2.00.0040.0308.78
5.1.60.0060.0258.06
5.1.50.0110.0268.06
5.1.40.0060.0358.05
5.1.30.0030.0358.39
5.1.20.0030.0328.41
5.1.10.0060.0278.14
5.1.00.0040.0388.14
5.0.50.0040.0286.61
5.0.40.0060.0186.48
5.0.30.0030.0336.28
5.0.20.0050.0196.26
5.0.10.0030.0216.24
5.0.00.0100.0336.23
4.4.90.0050.0214.77
4.4.80.0030.0204.76
4.4.70.0070.0164.76
4.4.60.0060.0144.76
4.4.50.0060.0224.77
4.4.40.0070.0304.71
4.4.30.0030.0184.76
4.4.20.0020.0184.84
4.4.10.0010.0194.85
4.4.00.0030.0274.75
4.3.110.0010.0184.67
4.3.100.0040.0154.66
4.3.90.0050.0134.64
4.3.80.0020.0264.58
4.3.70.0030.0164.63
4.3.60.0030.0174.63
4.3.50.0050.0154.63
4.3.40.0070.0324.54
4.3.30.0030.0223.29
4.3.20.0020.0203.27
4.3.10.0010.0233.23
4.3.00.0000.01313.47

preferences:
40.26 ms | 401 KiB | 5 Q