3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con = mysqli_connect(home.fgx.com.br,"fgxbidper","QajCBPx4W2Zw9U6c","fgx_bidper"); $sql = "SELECT peopleID, firstName, lastName, valueEx FROM exchange inner join people on people.id = exchange.peopleID WHERE curHave = (SELECT CurWant FROM exchange WHERE peopleID = 24) and finished = 0 and peopleID <> 24"; $res = mysqli_query($con,$sql); $result = array(); while($row = mysqli_fetch_array($res)){ array_push($result, array('id'=>$row[0], 'curHave'=>$row[1], 'curWant'=>$row[2], 'countryLive'=>$row[3])); } echo json_encode(array("result"=>$result)); mysqli_close($con); ?>

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.0090.00618.40
8.3.60.0110.00416.50
8.3.50.0110.00321.92
8.3.40.0110.00418.84
8.3.30.0070.00718.71
8.3.20.0030.00620.16
8.3.10.0060.00323.42
8.3.00.0080.00019.15
8.2.190.0140.00018.54
8.2.180.0130.00918.29
8.2.170.0070.00722.96
8.2.160.0140.00020.33
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0100.00317.38
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0120.00017.91
8.2.90.0050.00319.13
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0080.00021.18
8.2.30.0000.00720.51
8.2.20.0030.00517.71
8.2.10.0040.00418.00
8.2.00.0050.00217.97
8.1.280.0110.01125.92
8.1.270.0040.00421.86
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.54
8.1.230.0090.00317.64
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.96
8.1.160.0040.00421.96
8.1.150.0050.00218.75
8.1.140.0040.00419.33
8.1.130.0030.00517.46
8.1.120.0040.00417.30
8.1.110.0000.00717.22
8.1.100.0070.00017.37
8.1.90.0000.00717.39
8.1.80.0050.00217.33
8.1.70.0000.00717.37
8.1.60.0050.00317.41
8.1.50.0030.00617.31
8.1.40.0060.00317.36
8.1.30.0040.00417.43
8.1.20.0040.00417.50
8.1.10.0000.00717.60
8.1.00.0040.00417.45
8.0.300.0080.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.39
8.0.270.0030.00317.11
8.0.260.0030.00317.16
8.0.250.0000.00716.87
8.0.240.0000.00716.93
8.0.230.0040.00416.98
8.0.220.0000.00716.91
8.0.210.0040.00416.94
8.0.200.0000.00616.97
8.0.190.0030.00516.86
8.0.180.0040.00416.89
8.0.170.0050.00316.96
8.0.160.0040.00416.91
8.0.150.0080.00016.75
8.0.140.0040.00416.87
8.0.130.0000.00513.37
8.0.120.0050.00316.77
8.0.110.0030.00516.90
8.0.100.0000.00816.93
8.0.90.0080.00016.72
8.0.80.0120.00916.79
8.0.70.0050.00316.79
8.0.60.0050.00216.85
8.0.50.0020.00517.01
8.0.30.0080.01017.01
8.0.20.0080.01017.40
8.0.10.0000.00716.95
8.0.00.0080.00916.65
7.4.330.0050.00015.08
7.4.320.0000.00716.53
7.4.300.0080.00016.55
7.4.290.0050.00216.46
7.4.280.0040.00416.44
7.4.270.0060.00016.54
7.4.260.0040.00416.52
7.4.250.0040.00416.41
7.4.240.0050.00316.50
7.4.230.0000.00816.46
7.4.220.0150.00316.56
7.4.210.0080.01016.50
7.4.200.0000.00716.57
7.4.160.0070.01116.51
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0050.01316.45
7.4.120.0050.01216.45
7.4.110.0100.00716.48
7.4.100.0090.00916.43
7.4.90.0070.01016.60
7.4.80.0150.00619.39
7.4.70.0060.01216.36
7.4.60.0120.00316.45
7.4.50.0000.00416.18
7.4.40.0080.01016.38
7.4.30.0100.01316.48
7.4.00.0080.00914.85
7.3.330.0000.00613.11
7.3.320.0050.00013.18
7.3.310.0030.00316.31
7.3.300.0070.00016.11
7.3.290.0000.00716.14
7.3.280.0130.00616.29
7.3.270.0100.00717.40
7.3.260.0160.00816.26
7.3.250.0110.00816.45
7.3.240.0110.00516.42
7.3.230.0060.01216.48
7.3.210.0000.01716.38
7.3.200.0040.01216.25
7.3.190.0110.00516.39
7.3.180.0120.00316.32
7.3.170.0070.01016.54
7.3.160.0080.00816.38
7.3.120.0050.01214.96
7.3.110.0110.00814.87
7.3.100.0050.01114.62
7.3.90.0050.00714.70
7.3.80.0050.01014.73
7.3.70.0060.00814.75
7.3.60.0070.00814.82
7.3.50.0060.00814.81
7.3.40.0060.01014.90
7.3.30.0040.00614.78
7.3.20.0040.00716.53
7.3.10.0060.00716.43
7.3.00.0090.00716.29
7.2.330.0100.00716.27
7.2.320.0090.01516.51
7.2.310.0080.00816.53
7.2.300.0150.00316.30
7.2.290.0040.01816.63
7.2.250.0070.01315.12
7.2.240.0100.00914.84
7.2.230.0070.00515.04
7.2.220.0040.00914.84
7.2.210.0070.00814.90
7.2.200.0100.00314.95
7.2.190.0050.00514.95
7.2.180.0130.00314.91
7.2.170.0030.00914.82
7.2.160.0080.00414.92
7.2.150.0070.00416.58
7.2.140.0030.01016.80
7.2.130.0100.00716.72
7.2.120.0070.00616.45
7.2.110.0070.00816.50
7.2.100.0060.01016.51
7.2.90.0110.00616.78
7.2.80.0080.00816.45
7.2.70.0090.00516.56
7.2.60.0070.00816.66
7.2.50.0050.01116.47
7.2.40.0060.00916.62
7.2.30.0080.00616.69
7.2.20.0080.00616.49
7.2.10.0080.00716.55
7.2.00.0050.01017.33
7.1.330.0040.01115.52
7.1.320.0070.00715.62
7.1.310.0080.00315.53
7.1.300.0070.00815.48
7.1.290.0060.00815.66
7.1.280.0070.00515.63
7.1.270.0020.01015.45
7.1.260.0020.01115.63
7.1.250.0070.00715.45
7.1.240.0040.00815.74
7.1.230.0030.01015.63
7.1.220.0070.01015.60
7.1.210.0130.00315.72
7.1.200.0080.00515.41
7.1.190.0000.00915.52
7.1.180.0030.01015.42
7.1.170.0110.00415.79
7.1.160.0070.01015.63
7.1.150.0030.00815.80
7.1.140.0080.00815.68
7.1.130.0040.01115.49
7.1.120.0060.00315.39
7.1.110.0040.00815.69
7.1.100.0060.00716.70
7.1.90.0070.00715.80
7.1.80.0040.01115.75
7.1.70.0060.00916.28
7.1.60.0040.01317.60
7.1.50.0030.01116.02
7.1.40.0090.00615.61
7.1.30.0030.00615.68
7.1.20.0040.01115.41
7.1.10.0030.00615.69
7.1.00.0030.03918.99
7.0.330.0000.00815.25
7.0.320.0100.00315.10
7.0.310.0030.01315.30
7.0.300.0030.00515.09
7.0.290.0030.01015.10
7.0.280.0000.01515.43
7.0.270.0110.00415.20
7.0.260.0030.01014.94
7.0.250.0040.00715.45
7.0.240.0000.01115.31
7.0.230.0100.00315.21
7.0.220.0090.00015.23
7.0.210.0090.00015.33
7.0.200.0490.00714.97
7.0.190.0080.00815.40
7.0.180.0000.01415.16
7.0.170.0030.01015.32
7.0.160.0040.01115.46
7.0.150.0090.00615.23
7.0.140.0070.00715.23
7.0.130.0130.00015.28
7.0.120.0000.01315.21
7.0.110.0000.01015.36
7.0.100.0100.00314.87
7.0.90.0280.04117.55
7.0.80.0280.05017.67
7.0.70.0370.03217.69
7.0.60.0370.04217.60
7.0.50.0270.04217.86
7.0.40.0050.04216.74
7.0.30.0070.03716.81
7.0.20.0030.02816.67
7.0.10.0050.02616.68
7.0.00.0050.04316.76
5.6.400.0030.01014.03
5.6.390.0030.00614.19
5.6.380.0000.00914.33
5.6.370.0060.00313.95
5.6.360.0070.00314.50
5.6.350.0070.01014.43
5.6.340.0090.00614.24
5.6.330.0040.01214.32
5.6.320.0150.00314.19
5.6.310.0090.00914.14
5.6.300.0100.00714.12
5.6.290.0060.00614.13
5.6.280.0030.03417.49
5.6.270.0100.00714.23
5.6.260.0100.00313.86
5.6.250.0000.00914.08
5.6.240.0060.04317.50
5.6.230.0020.05017.39
5.6.220.0070.02517.32
5.6.210.0070.04317.54
5.6.200.0030.02617.48
5.6.190.0030.02917.61
5.6.180.0070.03017.70
5.6.170.0050.04417.38
5.6.160.0110.03917.62
5.6.150.0050.03817.48
5.6.140.0060.02617.57
5.6.130.0070.04217.58
5.6.120.0050.03317.73
5.6.110.0060.04517.54
5.6.100.0080.04617.46
5.6.90.0120.02717.54
5.6.80.0080.04317.17
5.6.70.0060.04317.25
5.6.60.0070.04417.18
5.6.50.0060.02617.16
5.6.40.0060.03617.27
5.6.30.0020.03117.27
5.6.20.0130.03717.18
5.6.10.0080.03017.21
5.6.00.0080.04017.22
5.5.380.0130.02317.18
5.5.370.0130.03317.23
5.5.360.0070.02517.16
5.5.350.0060.04617.13
5.5.340.0020.03317.45
5.5.330.0110.03917.50
5.5.320.0010.04617.40
5.5.310.0050.04417.43
5.5.300.0080.03517.57
5.5.290.0070.03717.52
5.5.280.0050.04817.50
5.5.270.0080.03017.49
5.5.260.0070.03017.50
5.5.250.0100.03717.35
5.5.240.0060.03017.20
5.5.230.0070.04417.03
5.5.220.0100.04017.08
5.5.210.0100.03717.16
5.5.200.0140.02517.09
5.5.190.0050.04816.95
5.5.180.0110.03917.01
5.5.170.0080.00613.93
5.5.160.0030.03416.91
5.5.150.0070.02717.04
5.5.140.0060.04316.98
5.5.130.0060.04617.06
5.5.120.0070.04417.13
5.5.110.0080.04517.10
5.5.100.0020.04517.08
5.5.90.0130.03816.88
5.5.80.0050.02816.88
5.5.70.0030.05017.04
5.5.60.0070.04016.93
5.5.50.0090.02217.10
5.5.40.0130.03717.05
5.5.30.0030.03217.08
5.5.20.0070.04217.01
5.5.10.0080.04216.90
5.5.00.0050.04417.01

preferences:
44.16 ms | 401 KiB | 5 Q