3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_POST['f__ves']) and isset($_POST['f__material'])) { $get_ves = $_POST['f__ves']; $get_material = $_POST['f__material']; foreach ($get_ves as $get_ves_item) { foreach ($get_material as $get_ves_item) { foreach ($product_id_arr as $prod_id) { $prod_get_attr = "SELECT * FROM `oc_product_attribute` WHERE (product_id, attribute_id, text) in( ('" . $prod_id . "', 28, '" . $get_ves_item . "'), ('" . $prod_id . "', 29, '" . $get_materail_item . "') )"; $query_prod_get_attr = mysqli_query($dbh, $prod_get_attr); foreach ($query_prod_get_attr as $product_id) { $product_val[] = $product_id['product_id']; } } } var_dump($product_val); } }

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.5.00.0110.01021.70
8.4.150.0100.00316.76
8.4.140.0100.01017.59
8.4.130.0060.00417.57
8.4.120.0140.00523.99
8.4.110.0120.00818.74
8.4.100.0130.00818.70
8.4.90.0060.01222.39
8.4.80.0050.00319.06
8.4.70.0040.00418.97
8.4.60.0090.00718.81
8.4.50.0150.00518.51
8.4.40.0160.00019.38
8.4.30.0080.00020.28
8.4.20.0080.01217.89
8.4.10.0100.00620.49
8.3.280.0020.00014.05
8.3.270.0150.00416.69
8.3.260.0110.00916.66
8.3.250.0110.00816.43
8.3.240.0070.01117.17
8.3.230.0100.00916.40
8.3.220.0120.00618.95
8.3.210.0120.00616.43
8.3.200.0060.00316.38
8.3.190.0030.00417.08
8.3.180.0080.01219.00
8.3.170.0120.00316.48
8.3.160.0140.00417.22
8.3.150.0130.00317.21
8.3.140.0040.00418.92
8.3.130.0150.00018.59
8.3.120.0070.01120.71
8.3.110.0120.00920.94
8.3.100.0030.00724.06
8.3.90.0050.00326.77
8.3.80.0070.00319.36
8.3.70.0120.00316.58
8.3.60.0160.00316.50
8.3.50.0110.00524.41
8.3.40.0200.00318.70
8.3.30.0060.00918.67
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0080.01120.40
8.2.280.0080.01018.18
8.2.270.0130.00616.48
8.2.260.0070.00718.46
8.2.250.0030.00616.70
8.2.240.0110.00717.04
8.2.230.0050.00222.58
8.2.220.0040.00437.54
8.2.210.0160.00326.77
8.2.200.0060.00318.88
8.2.190.0100.01016.75
8.2.180.0140.00625.92
8.2.170.0090.00618.98
8.2.160.0140.00722.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0050.00226.16
8.2.120.0050.00226.35
8.2.110.0000.00919.13
8.2.100.0030.00917.71
8.2.90.0040.00419.52
8.2.80.0000.00817.63
8.2.70.0050.00317.50
8.2.60.0000.00817.50
8.2.50.0050.00318.05
8.2.40.0040.00418.22
8.2.30.0000.00718.06
8.2.20.0000.00718.14
8.2.10.0000.00719.32
8.2.00.0000.00719.36
8.1.330.0060.01121.93
8.1.320.0120.00616.26
8.1.310.0150.00316.06
8.1.300.0000.00818.38
8.1.290.0030.00630.84
8.1.280.0130.00625.92
8.1.270.0000.00823.99
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0040.01222.19
8.1.230.0040.00720.89
8.1.220.0000.00817.74
8.1.210.0050.00318.96
8.1.200.0040.00417.52
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0060.00318.50
8.1.160.0000.00718.80
8.1.150.0040.00418.70
8.1.140.0040.00418.70
8.1.130.0070.00020.19
8.1.120.0030.00617.36
8.1.110.0030.00617.29
8.1.100.0040.00417.33
8.1.90.0070.00017.28
8.1.80.0070.00017.34
8.1.70.0000.00817.43
8.1.60.0000.00817.53
8.1.50.0000.00817.49
8.1.40.0040.00417.50
8.1.30.0040.00417.61
8.1.20.0000.00717.59
8.1.10.0060.00317.45
8.1.00.0040.00417.27
8.0.300.0040.00419.99
8.0.290.0000.00816.75
8.0.280.0040.00418.39
8.0.270.0070.00017.87
8.0.260.0030.00318.36
8.0.250.0030.00316.84
8.0.240.0000.00716.78
8.0.230.0000.00716.80
8.0.220.0000.00716.87
8.0.210.0030.00316.82
8.0.200.0040.00416.95
8.0.190.0080.00016.75
8.0.180.0070.00016.87
8.0.170.0030.00616.75
8.0.160.0050.00316.77
8.0.150.0000.00716.77
8.0.140.0050.00316.84
8.0.130.0030.00313.35
8.0.120.0000.00716.67
8.0.110.0070.00016.95
8.0.100.0030.00516.66
8.0.90.0000.00816.84
8.0.80.0060.00816.84
8.0.70.0000.00716.78
8.0.60.0040.00416.63
8.0.50.0040.00416.70
8.0.30.0030.01316.75
8.0.20.0090.01516.96
8.0.10.0040.00416.85
8.0.00.0110.01416.55
7.4.330.0020.00215.55
7.4.320.0000.00716.52
7.4.300.0040.00416.44
7.4.290.0030.00316.42
7.4.280.0090.00016.54
7.4.270.0000.00616.55
7.4.260.0000.00513.28
7.4.250.0070.00016.43
7.4.240.0040.00416.50
7.4.230.0030.00316.19
7.4.220.0030.00316.43
7.4.210.0030.01116.47
7.4.200.0050.00216.61
7.4.130.0090.00816.37
7.4.120.0100.01016.62
7.4.110.0070.01016.60
7.4.100.0160.00616.51
7.4.90.0100.00716.47
7.4.80.0110.01116.15
7.4.70.0120.01116.28
7.4.60.0110.01216.20
7.4.50.0140.00916.16
7.4.40.0130.00816.27
7.4.30.0100.01116.20
7.4.20.0080.01216.08
7.4.10.0130.00616.28
7.4.00.0100.01016.34
7.3.330.0000.00716.26
7.3.320.0000.00613.01
7.3.310.0040.00416.04
7.3.300.0030.00316.23
7.3.290.0120.00216.21
7.3.260.0200.00716.22
7.3.230.0130.00516.56
7.3.210.0060.01616.49
7.3.200.0110.00916.27
7.3.190.0120.00916.20
7.3.180.0130.00816.19
7.3.170.0120.00816.26
7.3.160.0100.01116.19
7.3.150.0140.00716.25
7.3.140.0090.00916.24
7.3.130.0140.00716.19
7.3.120.0100.01116.20
7.3.110.0100.01016.32
7.3.100.0120.01116.27
7.3.90.0100.01016.22
7.3.80.0170.01116.23
7.3.70.0130.01016.24
7.3.60.0080.01316.14
7.3.50.0150.00916.31
7.3.40.0160.00716.26
7.3.30.0150.00816.13
7.3.20.0130.00916.22
7.3.10.0130.00916.17
7.3.00.0150.00916.25
7.2.330.0070.01016.42
7.2.320.0120.00916.37
7.2.310.0110.01316.38
7.2.300.0140.00816.32
7.2.290.0120.00916.49
7.2.280.0120.00916.45
7.2.270.0100.01116.40
7.2.260.0110.00916.47
7.2.250.0130.00916.48
7.2.240.0110.01016.52
7.2.230.0110.01316.48
7.2.220.0160.01516.33
7.2.210.0150.00816.37
7.2.200.0140.01216.48
7.2.190.0120.01016.34
7.2.180.0130.01016.37
7.2.170.0120.01216.41
7.2.160.0120.01016.49
7.2.150.0100.01216.49
7.2.140.0140.01016.55
7.2.130.0180.01216.43
7.2.120.0120.01016.50
7.2.110.0160.00916.50
7.2.100.0190.00916.45
7.2.90.0170.00916.51
7.2.80.0120.01116.52
7.2.70.0160.00816.41
7.2.60.0140.00716.50
7.2.50.0130.00816.37
7.2.40.0140.01316.47
7.2.30.0130.01016.48
7.2.20.0120.00916.40
7.2.10.0140.00816.46
7.2.00.0130.01416.47

preferences:
31.45 ms | 403 KiB | 5 Q