3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = [["id", ">", 3], ["firstname", "=", "John"]]; $wherequery = ' where'; foreach($where as $w){ $wherequery .= ' ' . $w[0] . ' ' . $w[1] . ' :' . $w[0]; $params[$w[0]] = $w[2]; } echo "SELECT columns FROM table " . $wherequery;

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.5.10.0090.00718.76
8.5.00.0150.00819.93
8.4.150.0020.00114.05
8.4.140.0100.01317.68
8.4.130.0140.00618.58
8.4.120.0050.00422.39
8.4.110.0160.00420.52
8.4.100.0120.00917.70
8.4.90.0090.01020.46
8.4.80.0130.00718.90
8.4.70.0100.01020.61
8.4.60.0050.01018.82
8.4.50.0110.01017.86
8.4.40.0070.00317.71
8.4.30.0080.00020.58
8.4.20.0060.00317.79
8.4.10.0160.00319.48
8.3.280.0110.00918.12
8.3.270.0150.00516.68
8.3.260.0100.00616.77
8.3.250.0090.01116.42
8.3.240.0130.00716.70
8.3.230.0110.00816.53
8.3.220.0100.00918.86
8.3.210.0070.00116.70
8.3.200.0110.00816.70
8.3.190.0100.00617.31
8.3.180.0090.01116.71
8.3.170.0090.00920.65
8.3.160.0070.00018.35
8.3.150.0090.00918.84
8.3.140.0140.00016.51
8.3.130.0060.00316.50
8.3.120.0090.00920.66
8.3.110.0040.00418.27
8.3.100.0000.00716.58
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0060.00916.58
8.3.60.0120.00616.75
8.3.50.0100.00620.32
8.3.40.0040.01119.06
8.3.30.0070.00719.22
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0120.00716.54
8.2.280.0130.00519.94
8.2.270.0110.00717.32
8.2.260.0120.00618.14
8.2.250.0080.00016.73
8.2.240.0000.00817.07
8.2.230.0040.00420.94
8.2.220.0030.00616.85
8.2.210.0120.00426.77
8.2.200.0060.00316.38
8.2.190.0070.00716.58
8.2.180.0070.00725.92
8.2.170.0110.00718.91
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0060.00321.00
8.2.100.0060.00618.16
8.2.90.0050.00319.34
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0080.00017.98
8.2.30.0070.00018.02
8.2.20.0000.00720.39
8.2.10.0040.00417.86
8.2.00.0000.00719.34
8.1.330.0120.00616.01
8.1.320.0100.00916.21
8.1.310.0110.00716.72
8.1.300.0120.00318.30
8.1.290.0060.00318.88
8.1.280.0110.01125.92
8.1.270.0060.00318.68
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0000.00922.70
8.1.230.0080.00317.83
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0050.00218.85
8.1.150.0000.01118.62
8.1.140.0050.00317.37
8.1.130.0070.00018.76
8.1.120.0000.00717.32
8.1.110.0000.00817.41
8.1.100.0000.00717.49
8.1.90.0030.00317.43
8.1.80.0000.01017.40
8.1.70.0030.00317.36
8.1.60.0050.00317.47
8.1.50.0050.00317.52
8.1.40.0000.00817.40
8.1.30.0110.01117.60
8.1.20.0040.00817.65
8.1.10.0190.00417.56
8.1.00.0150.00817.37
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.50
8.0.270.0030.00316.82
8.0.260.0040.00418.31
8.0.250.0050.00316.93
8.0.240.0050.00216.85
8.0.230.0040.00416.82
8.0.220.0000.00716.88
8.0.210.0040.00416.75
8.0.200.0090.00417.05
8.0.190.0040.00416.84
8.0.180.0040.00416.85
8.0.170.0030.00516.96
8.0.160.0160.00316.77
8.0.150.0160.00316.68
8.0.140.0130.00516.82
8.0.130.0140.00516.87
8.0.120.0160.00316.75
8.0.110.0130.00516.85
8.0.100.0120.00616.73
8.0.90.0110.00716.75
8.0.80.0120.00816.86
8.0.70.0180.00416.66
8.0.60.0130.00516.81
8.0.50.0160.00316.91
8.0.30.0120.00816.86
8.0.20.0180.00016.93
8.0.10.0150.00316.81
7.4.330.0030.00315.55
7.4.320.0060.00016.63
7.4.300.0030.00316.58
7.4.290.0040.00416.45
7.4.280.0100.00716.51
7.4.270.0040.01316.39
7.4.260.0120.00916.60
7.4.250.0030.01116.43
7.4.240.0110.00416.42
7.4.230.0140.00516.50
7.4.220.0170.00016.49
7.4.210.0160.00016.52
7.4.200.0070.00716.43
7.4.190.0070.00716.66
7.4.180.0000.01216.41
7.4.160.0090.00316.58
7.4.150.0110.00416.58
7.4.140.0150.00016.56
7.4.130.0000.01215.98
7.4.120.0070.00716.14
7.4.110.0170.00016.34
7.4.100.0140.00416.52
7.4.90.0070.00816.42
7.4.80.0040.00916.30
7.4.70.0080.00316.42
7.4.60.0120.00416.54
7.4.50.0120.00416.29
7.4.40.0080.00816.21
7.4.30.0130.00416.30
7.4.20.0100.00716.47
7.4.10.0160.00016.45
7.4.00.0100.00616.43

preferences:
140.85 ms | 403 KiB | 5 Q