3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbquery_results1[0] = array("1","5","b99"); $dbquery_results1[1] = array("4","12","www"); $dbquery_results1[2] = array("10","32","ccc"); $dbquery_results1[3] = array("7","142","xx"); $dbquery_results2[0] = array("c","10"); $dbquery_results2[1] = array("as","1"); $dbquery_results2[2] = array("fe","7"); foreach($dbquery_results1 as $line_r1) { foreach($dbquery_results2 as $line_r2) { if($line_r1[0] == $line_r2[1]) { $line = $line_r1; $line[] = $line_r2[0]; $dbquery_combination[] = $line; } } } print_r($dbquery_combination); ?>

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.0140.00718.27
8.3.60.0090.00918.68
8.3.50.0100.01022.05
8.3.40.0070.00718.84
8.3.30.0100.00319.09
8.3.20.0000.00720.18
8.3.10.0000.00821.98
8.3.00.0040.00422.25
8.2.190.0120.00418.49
8.2.180.0110.00416.75
8.2.170.0090.00922.96
8.2.160.0070.00721.07
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.75
8.2.110.0100.00020.31
8.2.100.0120.00017.78
8.2.90.0030.00519.22
8.2.80.0000.00818.05
8.2.70.0030.00617.50
8.2.60.0040.00418.12
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.08
8.2.20.0040.00417.78
8.2.10.0000.00717.63
8.2.00.0060.00317.63
8.1.280.0100.00725.92
8.1.270.0080.00022.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00822.07
8.1.230.0080.00322.13
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00917.35
8.1.190.0080.00017.55
8.1.180.0040.00418.10
8.1.170.0050.00518.50
8.1.160.0000.00822.07
8.1.150.0000.00718.65
8.1.140.0040.00417.43
8.1.130.0000.00717.84
8.1.120.0070.00317.47
8.1.110.0080.00017.50
8.1.100.0040.00417.46
8.1.90.0000.00817.45
8.1.80.0000.00717.44
8.1.70.0000.00717.39
8.1.60.0040.00417.52
8.1.50.0000.00717.54
8.1.40.0030.00617.53
8.1.30.0040.00417.69
8.1.20.0040.00417.63
8.1.10.0030.00617.54
8.1.00.0050.00217.36
8.0.300.0070.00018.77
8.0.290.0000.00817.16
8.0.280.0000.00718.37
8.0.270.0000.00817.26
8.0.260.0030.00316.83
8.0.250.0030.00316.85
8.0.240.0000.00817.00
8.0.230.0030.00316.95
8.0.220.0040.00416.79
8.0.210.0070.00016.88
8.0.200.0040.00416.97
8.0.190.0070.00016.87
8.0.180.0040.00416.91
8.0.170.0040.00416.98
8.0.160.0040.00416.96
8.0.150.0070.00016.87
8.0.140.0040.00416.87
8.0.130.0060.00013.30
8.0.120.0040.00416.84
8.0.110.0070.00016.82
8.0.100.0000.00716.86
8.0.90.0000.00716.97
8.0.80.0060.01016.89
8.0.70.0070.00016.79
8.0.60.0040.00416.79
8.0.50.0040.00416.90
8.0.30.0170.00216.91
8.0.20.0110.00717.40
8.0.10.0020.00516.90
8.0.00.0140.00616.70
7.4.330.0000.00515.01
7.4.320.0040.00416.65
7.4.300.0000.00716.50
7.4.290.0030.00316.54
7.4.280.0030.00516.57
7.4.270.0000.00716.63
7.4.260.0030.00316.60
7.4.250.0000.00716.46
7.4.240.0040.00416.60
7.4.230.0000.00716.41
7.4.220.0110.00716.54
7.4.210.0070.00816.59
7.4.200.0000.00716.63
7.4.190.0030.00316.78
7.4.160.0080.00816.55
7.4.150.0100.00617.40
7.4.140.0110.00517.86
7.4.130.0090.00816.43
7.4.120.0070.01016.52
7.4.110.0060.01116.54
7.4.100.0100.01416.53
7.4.90.0140.00316.63
7.4.80.0060.01119.39
7.4.70.0060.01116.48
7.4.60.0140.00616.50
7.4.50.0050.00016.27
7.4.40.0070.00622.77
7.4.30.0160.00016.60
7.4.00.0030.01314.99
7.3.330.0050.00013.17
7.3.320.0020.00213.02
7.3.310.0060.00016.20
7.3.300.0000.00616.37
7.3.290.0040.01216.32
7.3.280.0120.00716.31
7.3.270.0080.00817.40
7.3.260.0090.00916.31
7.3.250.0090.00816.46
7.3.240.0180.00016.58
7.3.230.0060.01016.52
7.3.210.0070.01016.41
7.3.200.0100.01016.61
7.3.190.0100.01316.42
7.3.180.0040.01216.57
7.3.170.0060.01616.38
7.3.160.0150.00616.51
7.3.120.0130.00314.82
7.2.330.0130.00316.43
7.2.320.0210.00916.80
7.2.310.0000.01716.60
7.2.300.0100.00716.75
7.2.290.0060.00916.68
7.1.100.0000.01018.27
7.1.70.0040.00417.38
7.1.60.0130.01319.82
7.1.50.0090.01317.03
7.1.00.0030.07722.33
7.0.200.0030.00616.90
7.0.140.0030.07321.95
7.0.60.0100.08319.89
7.0.50.0070.05317.85
7.0.40.0130.07020.21
7.0.30.0230.04020.30
7.0.20.0370.06720.06
7.0.10.0300.07720.27
7.0.00.0000.09020.16
5.6.280.0100.06721.10
5.6.210.0100.07720.70
5.6.200.0170.07718.15
5.6.190.0100.06720.41
5.6.180.3630.04320.52
5.6.170.0200.03720.57
5.6.160.0100.05720.43
5.6.150.0100.05318.16
5.6.140.0070.03718.18
5.6.130.0000.04318.16
5.6.120.0030.07321.01
5.6.110.0170.06720.98
5.6.100.0100.03320.98
5.6.90.0130.06720.97
5.6.80.0070.08020.37
5.6.70.0230.03320.38
5.5.350.0000.04320.41
5.5.340.0170.06717.95
5.5.330.0170.07320.57
5.5.320.0200.07320.37
5.5.310.0270.04020.36
5.5.300.0100.03717.94
5.5.290.0070.07018.02
5.5.280.0030.07720.88
5.5.270.0100.08020.76
5.5.260.0030.06020.86
5.5.250.0070.03720.69
5.5.240.0100.06320.34
5.4.450.1570.04319.19
5.4.440.1570.04019.18
5.4.430.1600.03719.35
5.4.420.1530.04019.49
5.4.410.1800.04018.94
5.4.400.1630.03719.23
5.4.390.1530.04019.12
5.4.380.2330.04319.32
5.4.370.0300.05718.86
5.4.360.0030.06719.02
5.4.350.0030.03718.98
5.4.340.1570.03719.16
5.4.320.1730.05019.05
5.4.310.1670.04319.31
5.4.300.1700.04318.97
5.4.290.1630.03019.02
5.4.280.1800.04318.88
5.4.270.1870.03719.05
5.4.260.1730.04718.88
5.4.250.1830.04018.74
5.4.240.1600.04018.88
5.4.230.1930.03319.15
5.4.220.0030.04318.90
5.4.210.0070.07719.04
5.4.200.0770.03719.20
5.4.190.1500.04019.06
5.4.180.0030.04718.89
5.4.170.0000.04718.77
5.4.160.0470.04019.29
5.4.150.1430.03719.19
5.4.140.0030.03316.37
5.4.130.0030.03716.32
5.4.120.0000.05016.36
5.4.110.1500.03716.26
5.4.100.1500.03016.46
5.4.90.1530.03716.34
5.4.80.0000.03716.34
5.4.70.0000.04316.17
5.4.60.0030.03316.43
5.4.50.0900.03716.43
5.4.40.1770.04316.47
5.4.30.1730.03716.52
5.4.20.0900.03016.37
5.4.10.0100.04016.55
5.4.00.0030.03715.90
5.3.290.0970.05014.75
5.3.280.1530.04014.50
5.3.270.1630.03014.52
5.3.260.1670.03314.51
5.3.250.1830.04014.51
5.3.240.1870.04014.57
5.3.230.1700.04014.51
5.3.220.1500.03314.49
5.3.210.1770.04714.49
5.3.200.1570.05014.65
5.3.190.0070.04014.53
5.3.180.0130.07014.68
5.3.170.0030.04714.54
5.3.160.0870.04314.58
5.3.150.0070.07314.55
5.3.140.0070.04714.48
5.3.130.1230.03314.55
5.3.120.1600.03714.47
5.3.110.1670.04314.46
5.3.100.1870.03314.09
5.3.90.1630.04313.94
5.3.80.1470.04714.10
5.3.70.2000.04014.08
5.3.60.1630.03313.92
5.3.50.1600.03314.04
5.3.40.1700.03314.17
5.3.30.1700.03313.82
5.3.20.1530.03713.59
5.3.10.1270.03313.73
5.3.00.0030.03313.72
5.2.170.0030.03311.07
5.2.160.0130.03011.23
5.2.150.1230.03311.13
5.2.140.1470.03711.23
5.2.130.1470.03311.01
5.2.120.1300.03011.22
5.2.110.1330.02711.12
5.2.100.1330.02311.08
5.2.90.1470.03311.25
5.2.80.0070.04011.02
5.2.70.0100.02711.05
5.2.60.0030.03311.29
5.2.50.1070.03010.92
5.2.40.0800.03310.89
5.2.30.1000.03011.19
5.2.20.1330.03310.86
5.2.10.0000.03010.79
5.2.00.0100.05710.64
5.1.60.0000.0279.97
5.1.50.0130.02310.09
5.1.40.0830.0209.95
5.1.30.1200.02710.25
5.1.20.1100.03310.43
5.1.10.1070.02710.20
5.1.00.1100.0179.94
5.0.50.0630.0238.57
5.0.40.0600.0238.32
5.0.30.0330.0408.14
5.0.20.0530.0208.14
5.0.10.0570.0208.11
5.0.00.0500.0308.06
4.4.90.0530.0137.78
4.4.80.0530.0177.78
4.4.70.0570.0207.78
4.4.60.0630.0207.78
4.4.50.0570.0207.78
4.4.40.0770.0377.78
4.4.30.0670.0137.78
4.4.20.0570.0207.78
4.4.10.0530.0137.78
4.4.00.0570.0237.78
4.3.110.0530.0137.78
4.3.100.0030.0207.78
4.3.90.0000.0207.78
4.3.80.0000.0277.78
4.3.70.0000.0177.78
4.3.60.0030.0137.78
4.3.50.0030.0137.78
4.3.40.0030.0407.78
4.3.30.0000.0337.78
4.3.20.0130.0277.78
4.3.10.0270.0137.78
4.3.00.0270.0207.78

preferences:
44.57 ms | 401 KiB | 5 Q