3v4l.org

run code in 300+ PHP versions simultaneously
<?php $related = array(1,2,3); $sql = "SELECT id,title,pic1 FROM tbl_products WHERE id IN ("; $sql .= trim(str_repeat("?,",count($related)),","); $sql .= ") LIMIT 3;"; 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.20.0080.00017.71
8.4.10.0050.00517.81
8.3.150.0080.00019.16
8.3.140.0080.00018.95
8.3.130.0050.00318.49
8.3.120.0060.00319.00
8.3.110.0030.00520.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00018.52
8.3.70.0040.01116.63
8.3.60.0140.00318.43
8.3.50.0110.01122.91
8.3.40.0150.00018.71
8.3.30.0180.00018.54
8.3.20.0080.00020.25
8.3.10.0000.00821.73
8.3.00.0080.00020.77
8.2.270.0160.00318.38
8.2.260.0040.00417.30
8.2.250.0000.00816.35
8.2.240.0090.00016.89
8.2.230.0100.00022.58
8.2.220.0050.00337.54
8.2.210.0000.00826.77
8.2.200.0050.00518.88
8.2.190.0100.01316.58
8.2.180.0090.00916.38
8.2.170.0100.01022.96
8.2.160.0070.00719.15
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00320.39
8.2.120.0040.00426.35
8.2.110.0030.00620.41
8.2.100.0040.00817.72
8.2.90.0050.00518.03
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0070.00318.04
8.2.50.0050.00318.07
8.2.40.0000.00820.07
8.2.30.0050.00319.91
8.2.20.0040.00417.69
8.2.10.0070.00018.04
8.2.00.0000.00818.09
8.1.310.0110.00716.62
8.1.300.0110.00418.59
8.1.290.0030.00630.84
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.04
8.1.230.0090.00323.88
8.1.220.0030.00517.74
8.1.210.0030.00518.83
8.1.200.0060.00317.22
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0000.00718.87
8.1.150.0030.00318.90
8.1.140.0000.00719.48
8.1.130.0030.00317.68
8.1.120.0040.00417.48
8.1.110.0000.00817.33
8.1.100.0070.00017.49
8.1.90.0040.00417.40
8.1.80.0040.00417.36
8.1.70.0000.00717.38
8.1.60.0060.00317.48
8.1.50.0000.00817.52
8.1.40.0050.00317.54
8.1.30.0050.00317.65
8.1.20.0080.00017.55
8.1.10.0030.00617.43
8.1.00.0060.00317.50
8.0.300.0040.00419.98
8.0.290.0030.00516.75
8.0.280.0000.00718.31
8.0.270.0070.00016.80
8.0.260.0060.00017.29
8.0.250.0030.00316.91
8.0.240.0000.00716.92
8.0.230.0000.00816.91
8.0.220.0040.00316.78
8.0.210.0060.00316.79
8.0.200.0000.00716.75
8.0.190.0000.00716.77
8.0.180.0040.00416.85
8.0.170.0000.00716.83
8.0.160.0000.00716.83
8.0.150.0030.00516.78
8.0.140.0030.00316.86
8.0.130.0030.00313.34
8.0.120.0080.00016.80
8.0.110.0040.00416.86
8.0.100.0020.00516.76
8.0.90.0040.00416.77
8.0.80.0140.00716.92
8.0.70.0000.00816.74
8.0.60.0040.00416.77
8.0.50.0030.00516.68
8.0.30.0020.01916.95
8.0.20.0100.00817.40
8.0.10.0070.00016.80
8.0.00.0130.00316.46
7.4.330.0050.00215.08
7.4.320.0040.00416.58
7.4.300.0030.00316.34
7.4.290.0070.00016.61
7.4.280.0000.00816.47
7.4.270.0000.00716.42
7.4.260.0070.00316.52
7.4.250.0070.00016.53
7.4.240.0000.00716.61
7.4.230.0030.00316.57
7.4.220.0070.01016.52
7.4.210.0090.00916.49
7.4.200.0040.00416.68
7.4.160.0160.00016.66
7.4.150.0120.00617.40
7.4.140.0090.00717.86
7.4.130.0080.00816.45
7.4.120.0070.01216.40
7.4.110.0100.00716.57
7.4.100.0140.00416.30
7.4.90.0120.00616.25
7.4.80.0040.01319.39
7.4.70.0070.01416.33
7.4.60.0110.00416.53
7.4.50.0040.00816.52
7.4.40.0140.00516.52
7.4.30.0060.01516.36
7.4.00.0090.00314.73
7.3.330.0050.00013.11
7.3.320.0020.00213.06
7.3.310.0000.00716.02
7.3.300.0020.00516.10
7.3.290.0030.01516.24
7.3.280.0060.01116.21
7.3.270.0090.00817.40
7.3.260.0140.00216.44
7.3.250.0080.01116.42
7.3.240.0110.00616.27
7.3.230.0100.00616.41
7.3.210.0140.00616.27
7.3.200.0110.00416.34
7.3.190.0170.00016.15
7.3.180.0140.00716.49
7.3.170.0120.00916.41
7.3.160.0030.01416.23
7.2.330.0060.01316.55
7.2.320.0110.00616.38
7.2.310.0070.01016.69
7.2.300.0080.00816.54
7.2.290.0120.00616.30
7.2.00.0070.01019.16
7.1.100.0040.01118.32
7.1.70.0000.01417.23
7.1.60.0070.01019.90
7.1.50.0100.01616.71
7.1.00.0070.07322.43
7.0.200.0070.01014.93
7.0.70.0230.05020.03
7.0.60.0170.05719.93
7.0.50.0300.04720.45
7.0.40.0200.05320.30
7.0.30.0270.05320.44
7.0.20.0200.05720.28
7.0.10.0030.07020.39
7.0.00.0200.08320.33
5.6.280.0070.07020.93
5.6.220.0170.05720.48
5.6.210.0130.05720.62
5.6.200.0130.06321.02
5.6.190.0130.06021.13
5.6.180.0200.05321.23
5.6.170.0300.05021.08
5.6.160.1130.06321.05
5.6.150.0270.05721.08
5.6.140.0300.06721.19
5.6.130.0430.05721.09
5.6.120.0400.05721.11
5.6.110.0330.05721.06
5.6.100.0330.08021.02
5.6.90.0300.06321.09
5.6.80.0330.06020.45
5.6.70.0130.05720.43
5.6.60.0230.05720.45
5.6.50.0300.05320.47
5.6.40.0170.05320.44
5.6.30.0130.06720.44
5.6.20.0200.06320.51
5.6.10.0130.05720.51
5.6.00.0270.04320.41
5.5.360.0170.06320.44
5.5.350.0030.07020.55
5.5.340.0100.06320.87
5.5.330.0300.04720.70
5.5.320.0230.08020.98
5.5.310.0200.06720.85
5.5.300.0100.06720.87
5.5.290.0330.06020.96
5.5.280.0400.07320.92
5.5.270.0500.07020.94
5.5.260.0200.06020.70
5.5.250.0230.06020.66
5.5.240.0330.05320.21
5.5.230.0130.06320.26
5.5.220.0200.05020.31
5.5.210.0200.05320.32
5.5.200.0200.05320.18
5.5.190.0130.06020.12
5.5.180.0170.06320.26
5.5.160.0100.06020.30
5.5.150.0100.06020.20
5.5.140.0170.05720.22
5.5.130.0200.05320.25
5.5.120.0230.05020.11
5.5.110.0170.06320.21
5.5.100.0070.07020.16
5.5.90.0200.05720.12
5.5.80.0170.06320.09
5.5.70.0130.06720.07
5.5.60.0270.05320.10
5.5.50.0170.06320.17
5.5.40.0130.06020.07
5.5.30.0130.05720.19
5.5.20.0170.05720.19
5.5.10.0300.04720.18
5.5.00.0100.06020.08

preferences:
29.15 ms | 403 KiB | 5 Q