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 */ 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; } function recuperation_idProduct_idProductAttribute($reference){ $product_infos = array(); 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.70.0070.00716.38
8.3.60.0070.01118.16
8.3.50.0080.00822.05
8.3.40.0040.01118.67
8.3.30.0060.01319.13
8.3.20.0000.00720.16
8.3.10.0070.00023.66
8.3.00.0060.00319.25
8.2.180.0070.00716.63
8.2.170.0140.00022.96
8.2.160.0060.00920.55
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00322.13
8.2.110.0070.00421.93
8.2.100.0040.00717.72
8.2.90.0060.00319.09
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0080.00017.93
8.2.50.0000.00918.07
8.2.40.0000.01018.22
8.2.30.0000.00717.97
8.2.20.0080.00017.59
8.2.10.0000.00918.00
8.2.00.0050.00517.65
8.1.280.0100.00325.92
8.1.270.0090.00022.19
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0070.00323.84
8.1.230.0040.00819.01
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00717.23
8.1.190.0050.00317.38
8.1.180.0060.00618.10
8.1.170.0070.00318.50
8.1.160.0000.00721.97
8.1.150.0000.00818.54
8.1.140.0000.00717.32
8.1.130.0000.00717.66
8.1.120.0030.00317.35
8.1.110.0070.00017.37
8.1.100.0050.00217.21
8.1.90.0040.00417.37
8.1.80.0100.00017.30
8.1.70.0030.00317.31
8.1.60.0030.00617.40
8.1.50.0040.00417.43
8.1.40.0080.00017.44
8.1.30.0040.00417.49
8.1.20.0080.00017.46
8.1.10.0040.00417.45
8.1.00.0040.00417.43
8.0.300.0050.00319.02
8.0.290.0030.00616.93
8.0.280.0030.00318.34
8.0.270.0050.00217.15
8.0.260.0060.00017.16
8.0.250.0000.00716.93
8.0.240.0040.00416.88
8.0.230.0000.00716.88
8.0.220.0000.00716.70
8.0.210.0000.00716.82
8.0.200.0030.00316.85
8.0.190.0040.00416.73
8.0.180.0040.00416.86
8.0.170.0080.00016.80
8.0.160.0060.00316.70
8.0.150.0070.00016.71
8.0.140.0040.00416.68
8.0.130.0030.00313.27
8.0.120.0040.00416.65
8.0.110.0050.00316.68
8.0.100.0040.00416.84
8.0.90.0040.00416.69
8.0.80.0090.00916.79
8.0.70.0040.00416.84
8.0.60.0030.00516.68
8.0.50.0000.00716.81
8.0.30.0150.01117.02
8.0.20.0050.01317.40
8.0.10.0040.00416.91
8.0.00.0140.01016.51
7.4.330.0000.00515.00
7.4.320.0040.00416.46
7.4.300.0000.00716.49
7.4.290.0070.00016.43
7.4.280.0050.00316.50
7.4.270.0070.00016.26
7.4.260.0030.00316.24
7.4.250.0040.00416.37
7.4.240.0060.00116.51
7.4.230.0000.00716.55
7.4.220.0100.00716.42
7.4.210.0080.00616.51
7.4.200.0030.00316.53
7.4.190.0000.00716.35
7.4.160.0080.00816.57
7.4.150.0100.00717.40
7.4.140.0060.01117.86
7.4.130.0080.00916.27
7.4.120.0060.01116.44
7.4.110.0090.00916.27
7.4.100.0120.00616.32
7.4.90.0030.01416.31
7.4.80.0060.01219.39
7.4.70.0080.00816.20
7.4.60.0130.00316.60
7.4.50.0030.00316.25
7.4.40.0030.00922.77
7.4.30.0100.00716.49
7.4.00.0070.01014.82
7.3.330.0050.00013.04
7.3.320.0050.00012.94
7.3.310.0040.00416.17
7.3.300.0030.00316.19
7.3.290.0100.00316.15
7.3.280.0060.01316.21
7.3.270.0060.01317.40
7.3.260.0160.00316.52
7.3.250.0130.01016.28
7.3.240.0060.01216.54
7.3.230.0070.01116.55
7.3.210.0130.00316.27
7.3.200.0070.01019.39
7.3.190.0200.00016.26
7.3.180.0060.01316.18
7.3.170.0130.00416.27
7.3.160.0060.01016.28
7.3.120.0030.01214.46
7.2.330.0070.01016.64
7.2.320.0110.01116.60
7.2.310.0140.00316.46
7.2.300.0100.01316.45
7.2.290.0100.01316.32
7.2.110.0060.00916.23
7.2.100.0060.00616.35
7.2.90.0040.00816.31
7.2.80.0060.00316.36
7.2.70.0040.01116.45
7.2.60.0070.00716.88
7.2.50.0100.00316.83
7.2.40.0080.00816.80
7.2.30.0100.00316.72
7.2.20.0070.01116.54
7.2.10.0080.00416.56
7.2.00.0100.00718.07
7.1.230.0030.01015.38
7.1.220.0090.00615.47
7.1.210.0030.01015.54
7.1.200.0150.00015.27
7.1.190.0000.01315.45
7.1.180.0090.00615.54
7.1.170.0030.01015.74
7.1.160.0150.00315.59
7.1.150.0100.00715.57
7.1.140.0030.01015.44
7.1.130.0040.00715.51
7.1.120.0030.00915.73
7.1.110.0000.01115.73
7.1.100.0050.00716.91
7.1.90.0100.00615.70
7.1.80.0070.01015.66
7.1.70.0040.00816.27
7.1.60.0050.01517.74
7.1.50.0050.01216.19
7.1.40.0230.00016.00
7.1.30.0030.01315.82
7.1.20.0110.00715.58
7.1.10.0040.00815.49
7.1.00.0030.04219.05
7.0.310.0030.01015.11
7.0.300.0070.00715.38
7.0.290.0040.00415.29
7.0.280.0040.01115.36
7.0.270.0110.00415.21
7.0.260.0040.00414.97
7.0.250.0070.00415.17
7.0.240.0090.00615.39
7.0.230.0060.00615.29
7.0.220.0030.01015.05
7.0.210.0090.00615.20
7.0.200.0020.00715.97
7.0.190.0110.00715.02
7.0.180.0030.01015.32
7.0.170.0100.00715.33
7.0.160.0130.00315.11
7.0.150.0080.00315.25
7.0.140.0100.03518.58
7.0.130.0100.00714.88
7.0.120.0090.00315.19
7.0.110.0000.00915.38
7.0.100.0110.00415.06
7.0.90.0000.00915.36
7.0.80.0110.00715.16
7.0.70.0060.00615.16
7.0.60.0070.02218.48
7.0.50.0070.02916.63
7.0.40.0050.03516.81
7.0.30.0080.03216.73
7.0.20.0200.03516.83
7.0.10.0020.02516.75
7.0.00.0070.04216.83
5.6.380.0060.00614.26
5.6.370.0060.00613.80
5.6.360.0030.00713.84
5.6.350.0070.00314.24
5.6.340.0030.00614.27
5.6.330.0030.00914.46
5.6.320.0070.00313.98
5.6.310.0000.00814.09
5.6.300.0060.01013.88
5.6.290.0090.00614.14
5.6.280.0050.03817.29
5.6.270.0070.00413.90
5.6.260.0100.00413.94
5.6.250.0040.00813.95
5.6.240.0070.00713.89
5.6.230.0030.01014.30
5.6.220.0080.00814.08
5.6.210.0080.03117.25
5.6.200.0080.02216.11
5.6.190.0020.02817.35
5.6.180.0060.02617.21
5.6.170.0120.03417.23
5.6.160.0090.04017.32
5.6.150.0050.03316.04
5.6.140.0080.04316.14
5.6.130.0070.04016.16
5.6.120.0030.03017.72
5.6.110.0030.02417.77
5.6.100.0100.04217.62
5.6.90.0080.03217.45
5.6.80.0080.04517.35
5.6.70.0090.00913.96
5.6.60.0070.01014.24
5.6.50.0000.01514.28
5.6.40.0030.01313.94
5.6.30.0120.00513.85
5.6.20.0110.00313.91
5.6.10.0130.00613.98
5.6.00.0080.01213.96
5.5.380.0060.00610.68
5.5.370.0040.00411.19
5.5.360.0110.00011.13
5.5.350.0070.04015.85
5.5.340.0070.02314.52
5.5.330.0070.03415.76
5.5.320.0100.03715.65
5.5.310.0030.02715.65
5.5.300.0040.02214.32
5.5.290.0050.02114.43
5.5.280.0050.02715.80
5.5.270.0020.04715.93
5.5.260.0050.02215.62
5.5.250.0030.02415.82
5.5.240.0100.02315.44
5.5.230.0040.00810.50
5.5.220.0100.00510.44
5.5.210.0090.00010.82
5.5.200.0130.00010.90
5.5.190.0110.00010.93
5.5.180.0070.00710.63
5.5.170.0070.00713.70
5.5.160.0040.00910.87
5.5.150.0080.00410.43
5.5.140.0070.00710.61
5.5.130.0030.01010.92
5.5.120.0130.00310.66
5.5.110.0160.00011.06
5.5.100.0050.00510.55
5.5.90.0030.01010.36
5.5.80.0060.00610.96
5.5.70.0030.00810.63
5.5.60.0140.00411.00
5.5.50.0100.00710.92
5.5.40.0120.00310.88
5.5.30.0130.00110.39
5.5.20.0060.00310.83
5.5.10.0030.00510.64
5.5.00.0080.00410.89
5.4.450.0160.04015.00
5.4.440.0140.02015.25
5.4.430.0140.03515.12
5.4.420.0190.03315.03
5.4.410.0150.03915.14
5.4.400.0170.03514.98
5.4.390.0130.01914.96
5.4.380.0180.02514.94
5.4.370.0210.02214.96
5.4.360.0240.02515.06
5.4.350.0170.01814.78
5.4.340.0150.02214.87
5.4.330.0040.01110.73
5.4.320.0180.02814.87
5.4.310.0170.02514.87
5.4.300.0190.02114.67
5.4.290.0150.03815.03
5.4.280.0100.02211.54
5.4.270.0060.02211.43
5.4.260.0040.02511.46
5.4.250.0070.02911.52
5.4.240.0060.02111.70
5.4.230.0100.01911.63
5.4.220.0090.02011.64
5.4.210.0100.01811.56
5.4.200.0050.02311.38
5.4.190.0070.02111.43
5.4.180.0070.01911.49
5.4.170.0100.02611.73
5.4.160.0090.02611.53
5.4.150.0060.02111.50
5.4.140.0050.02911.52
5.4.130.0070.02311.45
5.4.120.0050.02211.49
5.4.110.0040.02711.30
5.4.100.0110.02411.31
5.4.90.0090.02411.16
5.4.80.0090.02011.28
5.4.70.0060.02511.24
5.4.60.0070.02811.40
5.4.50.0080.02311.28
5.4.40.0030.02711.19
5.4.30.0090.02011.40
5.4.20.0060.02511.44
5.4.10.0090.02511.40
5.4.00.0040.03011.11
5.3.290.1940.02312.69
5.3.280.0090.02011.52
5.3.270.0090.03711.60
5.3.260.0050.03011.43
5.3.250.0070.02311.59
5.3.240.0090.02111.51
5.3.230.0070.02911.56
5.3.220.0060.03111.45
5.3.210.0080.03511.48
5.3.200.0070.03111.31
5.3.190.0060.02911.42
5.3.180.0040.03011.44
5.3.170.0060.03111.57
5.3.160.0100.03611.55
5.3.150.0090.02711.54
5.3.140.0050.03111.50
5.3.130.0060.02511.51
5.3.120.0070.02411.40
5.3.110.0080.02711.49
5.3.100.0080.02311.23
5.3.90.0080.02811.11
5.3.80.0110.02411.04
5.3.70.0130.04211.14
5.3.60.0040.03211.19
5.3.50.0090.02711.09
5.3.40.0070.03011.04
5.3.30.0100.03411.10
5.3.20.0080.04611.03
5.3.10.0040.03110.77
5.3.00.0070.02410.89
5.2.170.0090.0219.30
5.2.160.0080.0199.20
5.2.150.0080.0149.34
5.2.140.0070.0179.27
5.2.130.0060.0179.14
5.2.120.0060.0179.15
5.2.110.0030.0219.24
5.2.100.0040.0219.29
5.2.90.0040.0259.21
5.2.80.0070.0239.17
5.2.70.0090.0219.18
5.2.60.0060.0249.03
5.2.50.0070.0179.08
5.2.40.0050.0229.27
5.2.30.0070.0239.10
5.2.20.0070.0289.00
5.2.10.0050.0239.04
5.2.00.0050.0228.84
5.1.60.0060.0198.40
5.1.50.0050.0148.40
5.1.40.0060.0168.39
5.1.30.0050.0188.56
5.1.20.0050.0168.58
5.1.10.0050.0158.44
5.1.00.0020.0168.44
5.0.50.0020.0147.68
5.0.40.0040.0167.62
5.0.30.0010.0227.52
5.0.20.0030.0177.50
5.0.10.0070.0217.50
5.0.00.0030.0237.49
4.4.90.0020.0156.76
4.4.80.0020.0126.74
4.4.70.0010.0116.74
4.4.60.0030.0096.74
4.4.50.0030.0106.75
4.4.40.0030.0156.72
4.4.30.0020.0106.74
4.4.20.0040.0096.79
4.4.10.0030.0106.79
4.4.00.0020.0166.75
4.3.110.0020.0126.70
4.3.100.0030.0096.70
4.3.90.0010.0116.68
4.3.80.0020.0146.65
4.3.70.0030.0136.68
4.3.60.0020.0116.68
4.3.50.0060.0096.68
4.3.40.0020.0206.63
4.3.30.0010.0156.01
4.3.20.0030.0116.00
4.3.10.0010.0115.98
4.3.00.0050.00811.32

preferences:
58.18 ms | 401 KiB | 5 Q