3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = array(); $_GET['CodigoUtente'] = 'sany'; $_GET['Nome'] = 'dddd'; if(isset($_GET['CodigoUtente'])){ $where[] = "CodigoUtente = '".$_GET['CodigoUtente']."'"; } if(isset($_GET['Nome'])){ $where[] = "Nome = '".$_GET['Nome']."'"; } $sql = "SELECT CodigoUtente, Nome, DataNasc, Sexo, Estadocivil, Nacionalidade, Responsavel, Parentesco, Contato FROM centrodb.PsicUtentes"; if(!empty($where)){ $final_where = count($where) > 1 ? implode(' OR ', $where) : end($where); $sql = "$sql WHERE ". $final_where; } echo $sql;

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.4.140.0180.00417.39
8.4.130.0050.00317.77
8.4.120.0090.01220.43
8.4.110.0120.00918.87
8.4.100.0110.01017.64
8.4.90.0180.00220.57
8.4.80.0110.00818.63
8.4.70.0090.01018.66
8.4.60.0120.00820.50
8.4.50.0120.00520.46
8.4.40.0080.01119.36
8.4.30.0120.00917.89
8.4.20.0060.00618.85
8.4.10.0140.00317.84
8.3.270.0120.00716.53
8.3.260.0110.00916.42
8.3.250.0120.00618.92
8.3.240.0120.00716.42
8.3.230.0140.00516.75
8.3.220.0090.01019.24
8.3.210.0080.00816.85
8.3.200.0060.00316.45
8.3.190.0040.00519.04
8.3.180.0100.01020.66
8.3.170.0130.00717.07
8.3.160.0150.00316.73
8.3.150.0110.00716.52
8.3.140.0000.00816.66
8.3.130.0040.01516.69
8.3.120.0090.00919.07
8.3.110.0090.00620.94
8.3.100.0000.00724.06
8.3.90.0180.00026.77
8.3.80.0060.00318.20
8.3.70.0090.00916.75
8.3.60.0090.01218.33
8.3.50.0050.00818.37
8.3.40.0060.00918.92
8.3.30.0040.01118.65
8.3.20.0080.00020.77
8.3.10.0080.00021.71
8.3.00.0060.00318.49
8.2.290.0090.00917.21
8.2.280.0120.00718.31
8.2.270.0150.00316.52
8.2.260.0060.00317.04
8.2.250.0040.00416.41
8.2.240.0120.00317.13
8.2.230.0090.00022.58
8.2.220.0050.00337.54
8.2.210.0040.01126.77
8.2.200.0110.00018.43
8.2.190.0070.01116.75
8.2.180.0140.00716.36
8.2.170.0150.00022.96
8.2.160.0070.00721.15
8.2.150.0030.00524.18
8.2.140.0120.00324.66
8.2.130.0070.00018.21
8.2.120.0000.00826.35
8.2.110.0100.00021.04
8.2.100.0120.00017.85
8.2.90.0000.00818.22
8.2.80.0000.00819.14
8.2.70.0060.00317.63
8.2.60.0030.00618.20
8.2.50.0050.00318.10
8.2.40.0030.00519.22
8.2.30.0070.00019.29
8.2.20.0070.00018.16
8.2.10.0040.00419.26
8.2.00.0000.00718.17
8.1.330.0130.00716.11
8.1.320.0080.01218.37
8.1.310.0150.00416.75
8.1.300.0060.00316.24
8.1.290.0060.00318.88
8.1.280.0090.00625.92
8.1.270.0040.00419.01
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0070.00420.95
8.1.220.0060.00317.75
8.1.210.0080.00018.77
8.1.200.0030.00617.25
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00718.91
8.1.150.0000.00718.92
8.1.140.0060.00318.99
8.1.130.0040.00420.14
8.1.120.0000.00717.46
8.1.110.0040.00417.30
8.1.100.0030.00317.39
8.1.90.0000.00717.48
8.1.80.0080.00017.45
8.1.70.0030.00317.44
8.1.60.0040.00417.53
8.1.50.0050.00317.49
8.1.40.0080.00017.58
8.1.30.0000.00817.64
8.1.20.0000.00817.66
8.1.10.0040.00717.55
8.1.00.0040.00417.52
8.0.300.0040.00420.21
8.0.290.0030.00616.75
8.0.280.0030.00318.29
8.0.270.0000.00816.75
8.0.260.0060.00018.50
8.0.250.0030.00316.99
8.0.240.0000.00816.93
8.0.230.0070.00016.86
8.0.220.0030.00316.82
8.0.210.0090.00016.88
8.0.200.0060.00016.80
8.0.190.0040.00416.79
8.0.180.0030.00616.96
8.0.170.0030.00616.88
8.0.160.0000.00716.89
8.0.150.0000.00716.90
8.0.140.0070.00016.86
8.0.130.0060.00013.32
8.0.120.0000.00716.84
8.0.110.0040.00416.80
8.0.100.0000.00716.90
8.0.90.0000.00716.95
8.0.80.0070.01216.85
8.0.70.0050.00316.95
8.0.60.0050.00316.73
8.0.50.0000.00816.78
8.0.30.0110.01117.29
8.0.20.0070.01117.40
8.0.10.0070.00017.03
8.0.00.0110.01116.60
7.4.330.0000.00415.55
7.4.320.0000.00716.61
7.4.300.0000.00616.48
7.4.290.0040.00416.58
7.4.280.0030.00716.55
7.4.270.0030.00316.43
7.4.260.0030.00316.54
7.4.250.0000.00716.56
7.4.240.0050.00216.62
7.4.230.0000.00716.40
7.4.220.0040.00416.58
7.4.210.0030.01316.47
7.4.200.0040.00416.39
7.4.160.0110.00616.50
7.4.140.0070.01317.86
7.4.130.0110.00716.59
7.4.120.0120.00916.46
7.4.110.0100.01016.58
7.4.100.0030.01716.56
7.4.90.0090.00816.50
7.4.80.0090.01019.39
7.4.70.0070.01116.29
7.4.60.0080.00816.57
7.4.50.0100.00716.49
7.4.40.0090.01216.53
7.4.00.0040.01114.84
7.3.330.0000.00513.16
7.3.320.0070.00013.21
7.3.310.0000.00716.26
7.3.300.0030.00316.21
7.3.290.0000.00716.16
7.3.280.0090.00816.26
7.3.260.0100.00816.51
7.3.230.0100.00616.31
7.3.210.0130.00416.60
7.3.200.0090.00616.36
7.3.190.0120.00316.29
7.3.180.0080.00816.53
7.3.170.0080.01516.52
7.3.160.0190.00316.37
7.3.10.1000.01014.64
7.3.00.0430.00314.74
7.2.330.0120.00616.63
7.2.320.0060.01216.71
7.2.310.0120.00416.73
7.2.300.0070.01016.83
7.2.290.0110.01116.51
7.2.130.0320.01915.20
7.2.120.0340.01015.13
7.2.110.0400.00615.13
7.2.100.0370.00615.26
7.2.90.0280.00415.20
7.2.80.0270.00314.92
7.2.70.0270.00315.18
7.2.60.0250.00415.17
7.2.50.0320.00015.23
7.2.40.0250.00715.42
7.2.30.0410.00015.27
7.2.20.0620.00315.10
7.2.10.0340.00315.07
7.2.00.0300.00715.16
7.1.250.0420.00313.82

preferences:
134.54 ms | 403 KiB | 5 Q