3v4l.org

run code in 300+ PHP versions simultaneously
<?php function UnitsToday(){ include_once("connect.php"); $today= date("Y-m-d"); $sqlexec="select SUM(foss.`Qty`) from FringeOrder as fo inner join FringeOrderStatus as fos on fo.`Status` = fos.`ID` inner join FringeOrderItems as foss WHERE foss.`ID`='6' AND fo.`CreateDate` BETWEEN '$today 00:00:00' AND '$today 23:59:59' "; $result = $mysqli->query($sqlexec); $row = $result->fetch_row(); echo row[0]; }

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.0080.00618.07
8.3.50.0110.00417.98
8.3.40.0090.00618.67
8.3.30.0170.00018.91
8.3.20.0070.00020.51
8.3.10.0080.00022.09
8.3.00.0080.00022.52
8.2.180.0060.00916.50
8.2.170.0040.01122.96
8.2.160.0070.01020.64
8.2.150.0030.00524.18
8.2.140.0190.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00617.50
8.2.110.0090.00020.98
8.2.100.0070.00317.78
8.2.90.0060.00318.89
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00917.80
8.2.50.0080.00018.10
8.2.40.0040.00418.18
8.2.30.0040.00417.94
8.2.20.0070.00017.41
8.2.10.0040.00417.47
8.2.00.0050.00219.22
8.1.280.0060.00825.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.01022.65
8.1.230.0110.00017.77
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00717.23
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0030.00618.36
8.1.160.0040.00421.86
8.1.150.0040.00418.43
8.1.140.0080.00017.31
8.1.130.0000.00717.72
8.1.120.0000.00717.39
8.1.110.0000.00717.34
8.1.100.0030.00317.34
8.1.90.0050.00217.33
8.1.80.0000.00817.33
8.1.70.0000.00717.32
8.1.60.0080.00017.47
8.1.50.0000.00717.44
8.1.40.0030.00617.37
8.1.30.0060.00317.32
8.1.20.0060.00317.46
8.1.10.0050.00317.32
8.1.00.0000.00817.30
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0050.00218.23
8.0.270.0000.00716.70
8.0.260.0000.00716.57
8.0.250.0000.00716.77
8.0.240.0030.00316.79
8.0.230.0070.00016.79
8.0.220.0000.00716.73
8.0.210.0030.00316.82
8.0.200.0030.00316.83
8.0.190.0050.00316.71
8.0.180.0000.00716.85
8.0.170.0000.00716.77
8.0.160.0070.00016.69
8.0.150.0000.00716.56
8.0.140.0050.00216.77
8.0.130.0000.00513.19
8.0.120.0030.00516.63
8.0.110.0040.00416.81
8.0.100.0000.00716.82
8.0.90.0030.00516.83
8.0.80.0140.00016.74
8.0.70.0050.00216.72
8.0.60.0050.00316.61
8.0.50.0040.00416.75
8.0.30.0140.00516.89
8.0.20.0130.00817.40
8.0.10.0000.00716.75
8.0.00.0160.00516.60
7.4.330.0030.00315.00
7.4.320.0030.00316.38
7.4.300.0000.00616.40
7.4.290.0030.00516.52
7.4.280.0070.00016.37
7.4.270.0000.00616.43
7.4.260.0030.00316.35
7.4.250.0000.00716.34
7.4.240.0030.00316.39
7.4.230.0000.00716.48
7.4.220.0110.00616.40
7.4.210.0060.01016.37
7.4.200.0030.00316.39
7.4.190.0000.00716.61
7.4.160.0150.00016.25
7.4.150.0120.00917.40
7.4.140.0080.01317.86
7.4.130.0110.00716.31
7.4.120.0090.00916.33
7.4.110.0130.00316.45
7.4.100.0140.00716.26
7.4.90.0030.01316.32
7.4.80.0190.00619.39
7.4.70.0080.00816.41
7.4.60.0060.01016.15
7.4.50.0030.00616.06
7.4.40.0090.00622.77
7.4.30.0040.01216.40
7.4.00.0030.01614.97
7.3.330.0000.00513.15
7.3.320.0000.00613.19
7.3.310.0000.00616.17
7.3.300.0030.00316.23
7.3.290.0090.00616.17
7.3.280.0050.01316.14
7.3.270.0060.01217.40
7.3.260.0060.01216.39
7.3.250.0050.01216.32
7.3.240.0100.01016.24
7.3.230.0110.00616.39
7.3.210.0170.00016.45
7.3.200.0090.00619.39
7.3.190.0100.01416.25
7.3.180.0080.00816.40
7.3.170.0140.01116.27
7.3.160.0000.01716.30
7.3.120.0100.00714.52
7.3.110.0070.01014.81
7.3.100.0060.00914.90
7.3.90.0060.01014.55
7.3.80.0040.00414.41
7.3.70.0070.01014.85
7.3.60.0030.01014.67
7.3.50.0110.00314.66
7.3.40.0040.01214.70
7.3.30.0000.00914.56
7.3.20.0060.00616.61
7.3.10.0060.00916.52
7.3.00.0060.01216.22
7.2.330.0030.01316.55
7.2.320.0110.00516.57
7.2.310.0120.00416.29
7.2.300.0070.01316.43
7.2.290.0090.00916.47
7.2.240.0060.01314.63
7.2.230.0030.01314.78
7.2.220.0080.00314.93
7.2.210.0030.01314.86
7.2.200.0030.01014.71
7.2.190.0080.00814.95
7.2.180.0060.00914.53
7.2.170.0040.01214.58
7.2.160.0040.00715.07
7.2.150.0000.01016.79
7.2.140.0030.01416.65
7.2.130.0030.01316.86
7.2.120.0070.00716.88
7.2.110.0110.00016.64
7.2.100.0030.01016.63
7.2.90.0030.01216.80
7.2.80.0060.00616.68
7.2.70.0120.00316.70
7.2.60.0070.00716.54
7.2.50.0040.01116.77
7.2.40.0100.00716.91
7.2.30.0070.01016.63
7.2.20.0040.00816.92
7.2.10.0060.00916.74
7.2.00.0080.00617.91
7.1.330.0030.01215.35
7.1.320.0030.01015.42
7.1.310.0150.00015.58
7.1.300.0070.00715.66
7.1.290.0110.00615.38
7.1.280.0080.00815.49
7.1.270.0070.00715.27
7.1.260.0000.01615.39
7.1.250.0030.01415.20
7.1.100.0000.01318.14
7.1.70.0040.00416.77
7.1.60.0070.01819.82
7.1.50.0130.00316.74
7.1.00.0000.08022.43
7.0.200.0100.00016.60
7.0.140.0030.07322.09
7.0.90.0170.04019.95
7.0.80.0030.04719.91
7.0.70.0100.04720.03
7.0.60.0100.08020.06
7.0.50.0100.04020.34
7.0.40.0130.03020.05
7.0.30.0100.04320.00
7.0.20.0000.04720.15
7.0.10.0000.04320.12
7.0.00.0000.05020.05
5.6.280.0030.07321.15
5.6.240.0030.04320.69
5.6.230.0030.04320.64
5.6.220.0000.05020.68
5.6.210.0100.07320.69
5.6.200.0070.04020.96
5.6.190.0100.03321.04
5.6.180.0030.04321.11
5.6.170.0000.04021.02
5.6.160.0070.04321.11
5.6.150.0030.04320.97
5.6.140.0070.03721.06
5.6.130.0000.04720.97
5.6.120.0030.04721.00
5.6.110.0100.03721.13
5.6.100.0030.04321.10
5.6.90.0070.03721.00
5.6.80.0000.06020.45
5.6.70.0030.03320.39
5.6.60.0030.04020.48
5.6.50.0070.05020.35
5.6.40.0130.06720.46
5.6.30.0070.06320.40
5.6.20.0100.08020.30
5.6.10.0100.07020.24
5.6.00.0000.03720.38
5.5.380.0100.03720.55
5.5.370.0070.04020.46
5.5.360.0030.05020.36
5.5.350.0100.03720.40
5.5.340.0070.07720.93
5.5.330.0000.04020.84
5.5.320.0000.04720.73
5.5.310.0030.03720.88
5.5.300.0100.03720.84
5.5.290.0030.04320.73
5.5.280.0030.04320.76
5.5.270.0030.04320.93
5.5.260.0030.03720.60
5.5.250.0070.07020.73
5.5.240.0130.03020.13
5.5.230.0070.03720.11
5.5.220.0030.03720.27
5.5.210.0030.04020.14
5.5.200.0070.04020.19
5.5.190.0100.07020.26
5.5.180.0130.07020.18
5.5.160.0070.07720.13
5.5.150.0070.06720.18
5.5.140.0030.06319.99
5.5.130.0030.04320.15
5.5.120.0000.08320.27
5.5.110.0100.07320.08
5.5.100.0130.07020.18
5.5.90.0070.04020.16
5.5.80.0000.08320.07
5.5.70.0070.07020.06
5.5.60.0100.08019.96
5.5.50.0100.07720.10
5.5.40.0130.07320.04
5.5.30.0100.08020.08
5.5.20.0070.08020.02
5.5.10.0100.04319.93
5.5.00.0200.06720.12
5.4.450.0030.04019.49
5.4.440.0030.03719.37
5.4.430.0070.03319.50
5.4.420.0070.04019.38
5.4.410.0030.07019.10
5.4.400.0130.02718.91
5.4.390.0100.03319.03
5.4.380.0070.03019.20
5.4.370.0000.04019.12
5.4.360.0000.04719.16
5.4.350.0070.06319.18
5.4.340.0030.04019.18
5.4.320.0030.03318.90
5.4.310.0030.07318.91
5.4.300.0200.06718.90
5.4.290.0070.04318.90
5.4.280.0130.06319.09
5.4.270.0000.04319.02
5.4.260.0030.07319.16
5.4.250.0000.08319.15
5.4.240.0070.04019.15
5.4.230.0070.03719.02
5.4.220.0100.07018.87
5.4.210.0170.06319.12
5.4.200.0070.04318.94
5.4.190.0000.04319.05
5.4.180.0000.04319.13
5.4.170.0070.04019.20
5.4.160.0130.06719.16
5.4.150.0030.07719.02
5.4.140.0070.08016.25
5.4.130.0070.06716.34
5.4.120.0100.06016.45
5.4.110.0000.07716.41
5.4.100.0070.07016.51
5.4.90.0030.04716.55
5.4.80.0170.03316.47
5.4.70.0030.07716.32
5.4.60.0070.03716.49
5.4.50.0100.04316.43
5.4.40.0070.03716.35
5.4.30.0000.05716.44
5.4.20.0100.06316.36
5.4.10.0070.06716.31
5.4.00.0100.06015.84
5.3.290.0000.04014.66
5.3.280.0000.04014.70
5.3.270.0070.06714.74
5.3.260.0070.07314.54
5.3.250.0100.04014.59
5.3.240.0100.08014.72
5.3.230.0100.07714.63
5.3.220.0100.05314.54
5.3.210.0070.07314.55
5.3.200.0030.07314.63
5.3.190.0030.04014.55
5.3.180.0000.04314.53
5.3.170.0030.04014.53
5.3.160.0030.04014.62
5.3.150.0030.03714.70
5.3.140.0130.04714.70
5.3.130.0130.05714.69
5.3.120.0070.07314.58
5.3.110.0030.05314.69
5.3.100.0030.05014.05
5.3.90.0030.04014.14
5.3.80.0200.03713.93
5.3.70.0030.04013.95
5.3.60.0130.06013.99
5.3.50.0070.07714.07
5.3.40.0070.07314.06
5.3.30.0070.04013.96
5.3.20.0130.06313.83
5.3.10.0070.03313.83
5.3.00.0030.07313.83
5.2.170.0000.03713.83
5.2.160.0030.03313.83
5.2.150.0030.03713.83
5.2.140.0030.06313.83
5.2.130.0130.05013.83
5.2.120.0000.05713.83
5.2.110.0030.05313.83
5.2.100.0030.06013.83
5.2.90.0030.06713.83
5.2.80.0100.05713.83
5.2.70.0130.05313.83
5.2.60.0030.05313.83
5.2.50.0000.05313.83
5.2.40.0070.04713.83
5.2.30.0130.05713.83
5.2.20.0000.06713.83
5.2.10.0000.03313.83
5.2.00.0000.04313.83
5.1.60.0030.02713.83
5.1.50.0070.04013.83
5.1.40.0030.05313.83
5.1.30.0070.05313.83
5.1.20.0030.04713.83
5.1.10.0030.04313.83
5.1.00.0100.04713.83
5.0.50.0070.04313.83
5.0.40.0000.04713.83
5.0.30.0030.06013.83
5.0.20.0000.04713.83
5.0.10.0030.04013.83
5.0.00.0030.06313.83
4.4.90.0030.02713.83
4.4.80.0100.03013.83
4.4.70.0000.04013.83
4.4.60.0000.03713.83
4.4.50.0070.02313.83
4.4.40.0030.04013.83
4.4.30.0000.03713.83
4.4.20.0000.04013.83
4.4.10.0000.03313.83
4.4.00.0070.05013.83
4.3.110.0070.03013.83
4.3.100.0000.03713.83
4.3.90.0070.03013.83
4.3.80.0000.05013.83
4.3.70.0070.03013.83
4.3.60.0030.03313.83
4.3.50.0030.03313.83
4.3.40.0030.04713.83
4.3.30.0000.03313.83
4.3.20.0000.02013.83
4.3.10.0070.03013.83
4.3.00.0070.03013.83

preferences:
49.66 ms | 400 KiB | 5 Q