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.0040.01118.71
8.3.30.0110.00418.92
8.3.20.0040.00420.16
8.3.10.0050.00323.61
8.3.00.0000.00819.25
8.2.170.0140.00722.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00326.16
8.2.120.0080.00022.00
8.2.110.0030.00622.32
8.2.100.0040.00817.59
8.2.90.0030.00519.22
8.2.80.0050.00317.97
8.2.70.0070.00417.36
8.2.60.0060.00617.68
8.2.50.0060.00318.07
8.2.40.0030.00619.82
8.2.30.0040.00417.86
8.2.20.0030.00517.44
8.2.10.0090.00017.89
8.2.00.0030.00617.56
8.1.270.0040.00423.71
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.78
8.1.230.0030.00919.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0040.00417.40
8.1.180.0060.00618.10
8.1.170.0050.00318.49
8.1.160.0050.00321.99
8.1.150.0000.00718.48
8.1.140.0040.00417.28
8.1.130.0030.00317.43
8.1.120.0000.00717.36
8.1.110.0000.00717.39
8.1.100.0030.00317.34
8.1.90.0040.00417.35
8.1.80.0070.00017.29
8.1.70.0000.00717.23
8.1.60.0000.00817.49
8.1.50.0000.00817.38
8.1.40.0040.00417.43
8.1.30.0040.00417.44
8.1.20.0070.00017.46
8.1.10.0040.00417.38
8.1.00.0000.00717.43
8.0.300.0060.00320.67
8.0.290.0060.00317.05
8.0.280.0070.00018.43
8.0.270.0000.00717.20
8.0.260.0000.00716.81
8.0.250.0060.00016.83
8.0.240.0030.00516.86
8.0.230.0000.00616.84
8.0.220.0000.00716.67
8.0.210.0000.00716.81
8.0.200.0000.00616.89
8.0.190.0060.00316.86
8.0.180.0000.00716.88
8.0.170.0060.00316.73
8.0.160.0050.00216.84
8.0.150.0000.00716.62
8.0.140.0050.00316.77
8.0.130.0050.00013.23
8.0.120.0040.00416.62
8.0.110.0040.00416.65
8.0.100.0000.00716.77
8.0.90.0050.00216.73
8.0.80.0070.01016.82
8.0.70.0050.00316.69
8.0.60.0000.00716.64
8.0.50.0040.00416.84
8.0.30.0160.00316.91
8.0.20.0090.00917.40
8.0.10.0040.00416.90
8.0.00.0100.00916.58
7.4.330.0030.00315.00
7.4.320.0000.00616.46
7.4.300.0030.00316.43
7.4.290.0000.00716.45
7.4.280.0040.00416.48
7.4.270.0030.00316.44
7.4.260.0030.00316.51
7.4.250.0040.00416.37
7.4.240.0010.00716.34
7.4.230.0000.00716.47
7.4.220.0170.00016.38
7.4.210.0070.00816.32
7.4.200.0040.00416.49
7.4.190.0040.00416.63
7.4.160.0090.01216.38
7.4.150.0030.01417.40
7.4.140.0090.00817.86
7.4.130.0050.01116.29
7.4.120.0090.00716.38
7.4.110.0100.00716.27
7.4.100.0100.00716.50
7.4.90.0090.00916.48
7.4.80.0060.01319.39
7.4.70.0060.00916.33
7.4.60.0090.00916.40
7.4.50.0080.00016.24
7.4.40.0070.01022.77
7.4.30.0070.01716.40
7.4.10.0000.01316.12
7.4.00.0050.01015.53
7.3.330.0050.00013.01
7.3.320.0000.00613.20
7.3.310.0040.00416.17
7.3.300.0030.00316.20
7.3.290.0050.00916.20
7.3.280.0090.00816.17
7.3.270.0100.00617.40
7.3.260.0150.00616.27
7.3.250.0110.00816.46
7.3.240.0160.00316.54
7.3.230.0090.00916.39
7.3.210.0060.01016.21
7.3.200.0070.01519.39
7.3.190.0130.01016.18
7.3.180.0060.00916.47
7.3.170.0100.00716.38
7.3.160.0040.01216.37
7.3.130.0030.01316.09
7.3.120.0080.00615.52
7.3.110.0030.01016.32
7.3.100.0040.01116.29
7.3.90.0110.00416.37
7.3.80.0070.00716.00
7.3.70.0040.00416.19
7.3.60.0070.00316.24
7.3.50.0030.00716.27
7.3.40.0070.00316.25
7.3.30.0000.01216.25
7.3.20.0070.01018.02
7.3.10.0110.00717.82
7.3.00.0070.00317.93
7.2.330.0120.00616.43
7.2.320.0060.01616.43
7.2.310.0070.01316.50
7.2.300.0080.00816.36
7.2.290.0060.01116.46
7.2.260.0070.01116.68
7.2.250.0100.01016.52
7.2.240.0070.01116.33
7.2.230.0040.01416.39
7.2.220.0070.01016.39
7.2.210.0050.00816.35
7.2.200.0030.01316.34
7.2.190.0030.00616.43
7.2.180.0040.00816.31
7.2.170.0030.00616.39
7.2.160.0090.00616.45
7.2.150.0000.01818.13
7.2.140.0030.00918.20
7.2.130.0040.01118.16
7.2.120.0140.00418.10
7.2.110.0060.00318.21
7.2.100.0030.00918.40
7.2.90.0030.00618.35
7.2.80.0070.00718.25
7.2.70.0000.01018.04
7.2.60.0030.01018.32
7.2.50.0100.00318.15
7.2.40.0080.00318.31
7.2.30.0090.00918.14
7.2.20.0030.00818.16
7.2.10.0040.01118.15
7.2.00.0020.01018.70
7.1.330.0090.00317.10
7.1.320.0030.01017.00
7.1.310.0090.00917.18
7.1.300.0070.00417.28
7.1.290.0100.00317.20
7.1.280.0070.00417.31
7.1.270.0000.01717.07
7.1.260.0040.00417.06
7.1.250.0040.00817.25
7.1.240.0000.00916.97
7.1.230.0030.00617.14
7.1.220.0060.00617.01
7.1.210.0070.00717.12
7.1.200.0070.00616.36
7.1.190.0060.00616.93
7.1.180.0040.01117.14
7.1.170.0140.00017.14
7.1.160.0040.00716.96
7.1.150.0080.00417.19
7.1.140.0030.00617.08
7.1.130.0040.00717.25
7.1.120.0090.00617.09
7.1.110.0060.00617.30
7.1.100.0400.00516.59
7.1.90.0090.00617.11
7.1.80.0110.00016.99
7.1.70.0060.00517.07
7.1.60.0110.01118.26
7.1.50.0050.01116.74
7.1.40.0000.01216.97
7.1.30.0030.00917.20
7.1.20.0040.01117.13
7.1.10.0060.00917.25
7.1.00.0070.04719.72
7.0.330.0100.00316.91
7.0.320.0040.00816.92
7.0.310.0050.00516.64
7.0.300.0050.00516.80
7.0.290.0000.01116.89
7.0.280.0030.01216.95
7.0.270.0000.01416.75
7.0.260.0060.00616.92
7.0.250.0040.00416.91
7.0.240.0070.00316.97
7.0.230.0090.00016.93
7.0.220.0030.00816.80
7.0.210.0040.01116.86
7.0.200.0050.00616.55
7.0.190.0000.01316.72
7.0.180.0040.00716.99
7.0.170.0060.00616.82
7.0.160.0040.00816.73
7.0.150.0090.00616.92
7.0.140.0020.04119.46
7.0.130.0100.00716.99
7.0.120.0000.01016.96
7.0.110.0370.03718.42
7.0.100.0260.02618.36
7.0.90.0130.04518.33
7.0.80.0320.03818.32
7.0.70.0230.04318.31
7.0.60.0280.02918.44
7.0.50.0300.04718.43
7.0.40.0050.02717.33
7.0.30.0100.04017.23
7.0.20.0030.04117.34
7.0.10.0060.04317.19
7.0.00.0070.04217.22
5.6.400.0030.00715.45
5.6.390.0040.00915.76
5.6.380.0040.00715.64
5.6.370.0070.00715.66
5.6.360.0050.00515.79
5.6.350.0060.00915.91
5.6.340.0140.00415.55
5.6.330.0120.00315.70
5.6.320.0040.01115.55
5.6.310.0000.01415.62
5.6.300.0070.00415.54
5.6.290.0090.00615.91
5.6.280.0030.04218.38
5.6.270.0110.00415.59
5.6.260.0100.04518.07
5.6.250.0110.03518.39
5.6.240.0060.04618.10
5.6.230.0080.04018.22
5.6.220.0030.03318.07
5.6.210.0070.04218.13
5.6.200.0030.03218.25
5.6.190.0000.03418.12
5.6.180.0100.03618.25
5.6.170.0050.04517.96
5.6.160.0040.04218.06
5.6.150.0030.02818.20
5.6.140.0070.04218.15
5.6.130.0080.04118.02
5.6.120.0050.04818.14
5.6.110.0020.03318.20
5.6.100.0130.03518.16
5.6.90.0030.04418.04
5.6.80.0100.03817.77
5.6.70.0080.04317.76
5.6.60.0100.04017.88
5.6.50.0070.04217.64
5.6.40.0120.03517.91
5.6.30.0030.04017.75
5.6.20.0000.04917.79
5.6.10.0070.02817.65
5.6.00.0080.03617.69
5.5.380.0050.03916.60
5.5.370.0070.04216.59
5.5.360.0120.04416.60
5.5.350.0020.04616.37
5.5.340.0050.04316.67
5.5.330.0100.02416.88
5.5.320.0000.04616.83
5.5.310.0100.03916.82
5.5.300.0070.02716.79
5.5.290.0080.04016.97
5.5.280.0060.04516.75
5.5.270.0030.04716.78
5.5.260.0120.04216.81
5.5.250.0030.04116.71
5.5.240.0050.04716.38
5.5.230.0050.03816.58
5.5.220.0050.04316.49
5.5.210.0070.03516.40
5.5.200.0020.04116.56
5.5.190.0050.04316.34
5.5.180.0050.04216.26
5.5.170.0060.01215.60
5.5.160.0100.04016.54
5.5.150.0070.02116.59
5.5.140.0070.04016.50
5.5.130.0070.04116.44
5.5.120.0080.03916.47
5.5.110.0090.03816.44
5.5.100.0050.04116.34
5.5.90.0050.04216.46
5.5.80.0050.04016.57
5.5.70.0050.04516.41
5.5.60.0070.02816.35
5.5.50.0120.03516.36
5.5.40.0090.02416.34
5.5.30.0070.04316.35
5.5.20.0030.03516.33
5.5.10.0110.03816.35
5.5.00.0050.02816.33
5.4.450.0030.04415.85
5.4.440.0030.02815.86
5.4.430.0070.03615.95
5.4.420.0020.04716.11
5.4.410.0030.04515.80
5.4.400.0070.03815.87
5.4.390.0080.04015.78
5.4.380.0050.02515.80
5.4.370.0050.03615.69
5.4.360.0030.04615.78
5.4.350.0050.04315.79
5.4.340.0060.04015.79
5.4.330.0060.00912.49
5.4.320.0060.02515.83
5.4.310.0050.03915.86
5.4.300.0070.04015.91
5.4.290.0130.03315.75
5.4.280.0070.03715.81
5.4.270.0030.04315.68
5.4.260.0050.04315.81
5.4.250.0050.03715.69
5.4.240.0060.04515.81
5.4.230.0090.04015.78
5.4.220.0090.03415.65
5.4.210.0050.04315.88
5.4.200.0090.03715.80
5.4.190.0080.03515.74
5.4.180.0030.04315.74
5.4.170.0080.03815.59
5.4.160.0020.04015.72
5.4.150.0080.03915.80
5.4.140.0050.04114.47
5.4.130.0070.03214.49
5.4.120.0050.04014.56
5.4.110.0070.02614.37
5.4.100.0050.03814.51
5.4.90.0030.03814.47
5.4.80.0070.03614.47
5.4.70.0070.03514.45
5.4.60.0030.03814.53
5.4.50.0070.03714.51
5.4.40.0030.04414.42
5.4.30.0020.02414.49
5.4.20.0030.04114.28
5.4.10.0050.04114.50
5.4.00.0050.04114.16
5.3.290.0000.04813.81
5.3.280.0050.03413.64
5.3.270.0060.02513.79
5.3.260.0030.04313.76
5.3.250.0060.04813.67
5.3.240.0050.03213.60
5.3.230.0100.03513.56
5.3.220.0070.03813.80
5.3.210.0090.03113.62
5.3.200.0050.03813.80
5.3.190.0080.03813.73
5.3.180.0100.03413.83
5.3.170.0050.03213.90
5.3.160.0020.02713.66
5.3.150.0030.03813.78
5.3.140.0030.03013.79
5.3.130.0030.04013.66
5.3.120.0050.03913.67
5.3.110.0080.04013.72
5.3.100.0060.02313.58
5.3.90.0090.02813.47
5.3.80.0020.04013.39
5.3.70.0100.03013.35
5.3.60.0050.02513.39
5.3.50.0020.02213.28
5.3.40.0060.01813.30
5.3.30.0060.02113.27
5.3.20.0060.02013.20
5.3.10.0040.01813.07
5.3.00.0030.02313.13
5.2.170.0000.03011.30
5.2.160.0070.02711.16
5.2.150.0100.04711.11
5.2.140.0030.03010.99
5.2.130.0000.02711.12
5.2.120.0030.02711.05
5.2.110.0100.02711.23
5.2.100.0070.02310.95
5.2.90.0000.03011.16
5.2.80.0030.02711.23
5.2.70.0000.03311.05
5.2.60.0070.02311.05
5.2.50.0030.02711.09
5.2.40.0100.02010.95
5.2.30.0070.02710.96
5.2.20.0030.03310.93
5.2.10.0100.05710.72
5.2.00.0000.03010.84
5.1.60.0000.05010.16
5.1.50.0000.02710.14
5.1.40.0000.02710.13
5.1.30.0000.02710.20
5.1.20.0070.05710.37
5.1.10.0000.02710.04
5.1.00.0030.03010.04
5.0.50.0000.0208.52
5.0.40.0030.0178.57
5.0.30.0000.0278.28
5.0.20.0000.0208.20
5.0.10.0000.0208.17
5.0.00.0000.0308.16
4.4.90.0000.0177.25
4.4.80.0000.0177.25
4.4.70.0000.0177.25
4.4.60.0000.0177.25
4.4.50.0000.0207.25
4.4.40.0000.0277.25
4.4.30.0030.0177.25
4.4.20.0030.0207.25
4.4.10.0000.0177.25
4.4.00.0000.0277.25
4.3.110.0030.0137.25
4.3.100.0000.0177.25
4.3.90.0000.0207.25
4.3.80.0030.0237.25
4.3.70.0000.0137.25
4.3.60.0000.0137.25
4.3.50.0000.0177.25
4.3.40.0000.0237.25
4.3.30.0000.0137.25
4.3.20.0000.0207.25
4.3.10.0000.0237.25
4.3.00.0030.0137.25

preferences:
41.46 ms | 400 KiB | 5 Q