3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = ['Paso', 'Robles']; $columns = ['ID', 'StorageArea', 'Size', 'Winery', 'Brand', 'Appellation', 'ReleaseYear', 'Varietal', 'Status', 'CountryName']; $where = 'WHERE ' . implode("\nAND ", array_map(function ($keyword) use ($columns) { $keyword = str_replace("'", "''", $keyword); return "\n(" . implode(' OR ', array_map(function ($column) use ($keyword) { return "\n`$column` LIKE '%$keyword%'"; }, array_filter($columns, function ($column) { return $column !== 'ID'; }))) . "\n)"; }, $keywords)); echo $where;

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.80.0040.00418.30
8.3.70.0100.01018.25
8.3.60.0090.00618.27
8.3.50.0120.00316.38
8.3.40.0200.00318.80
8.3.30.0130.00318.80
8.3.20.0000.00720.35
8.3.10.0040.00423.61
8.3.00.0050.00222.51
8.2.200.0000.01018.06
8.2.190.0040.01116.58
8.2.180.0070.00718.13
8.2.170.0120.00318.97
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0000.00818.21
8.2.120.0050.00326.35
8.2.110.0030.00619.24
8.2.100.0110.00019.45
8.2.90.0040.00417.88
8.2.80.0040.00418.48
8.2.70.0040.00417.80
8.2.60.0080.00017.63
8.2.50.0040.00418.10
8.2.40.0000.00819.30
8.2.30.0000.00719.24
8.2.20.0040.00418.09
8.2.10.0000.00719.42
8.2.00.0040.00418.13
8.1.290.0040.00430.84
8.1.280.0110.00725.92
8.1.270.0080.01122.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00619.14
8.1.230.0000.01222.74
8.1.220.0080.00018.64
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0030.00717.35
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00718.77
8.1.150.0030.00618.98
8.1.140.0040.00422.18
8.1.130.0030.00320.21
8.1.120.0040.00417.36
8.1.110.0050.00517.46
8.1.100.0070.00317.47
8.1.90.0050.00517.43
8.1.80.0040.00417.49
8.1.70.0060.00317.35
8.1.60.0030.00517.62
8.1.50.0050.00217.43
8.1.40.0000.00717.54
8.1.30.0030.00517.68
8.1.20.0080.00017.55
8.1.10.0080.00017.39
8.1.00.0000.00817.31
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.48
8.0.270.0000.01016.84
8.0.260.0000.00718.47
8.0.250.0060.00316.98
8.0.240.0030.00316.91
8.0.230.0000.00716.94
8.0.220.0030.00316.90
8.0.210.0030.00316.86
8.0.200.0000.00716.88
8.0.190.0070.00016.84
8.0.180.0080.00016.87
8.0.170.0040.00416.83
8.0.160.0030.00316.89
8.0.150.0000.00716.84
8.0.140.0000.00716.82
8.0.130.0030.00313.38
8.0.120.0000.00816.69
8.0.110.0000.00816.81
8.0.100.0070.00016.84
8.0.90.0070.00016.87
8.0.80.0080.00816.88
8.0.70.0050.00216.87
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0060.00916.80
8.0.20.0100.01417.00
8.0.10.0040.00416.84
8.0.00.0090.01516.79
7.4.330.0050.00016.78
7.4.320.0050.00216.59
7.4.300.0030.00316.43
7.4.290.0000.00716.42
7.4.280.0050.00316.50
7.4.270.0000.00716.49
7.4.260.0040.00416.45
7.4.250.0030.00316.46
7.4.240.0050.00316.51
7.4.230.0070.00016.64
7.4.220.0080.00016.63
7.4.210.0070.01016.58
7.4.200.0040.00416.61
7.4.140.0030.01617.86
7.4.130.0100.00616.52
7.4.120.0000.01816.52
7.4.110.0070.01016.49
7.4.100.0100.00716.55
7.4.90.0070.01016.52
7.4.80.0030.02019.39
7.4.70.0080.00416.34
7.4.60.0060.01016.47
7.4.50.0060.01016.35
7.4.40.0070.01016.59
7.4.00.0090.00915.05
7.3.330.0050.00013.36
7.3.320.0000.00613.44
7.3.310.0070.00016.26
7.3.300.0070.00016.30
7.3.290.0000.00716.32
7.3.280.0080.00816.35
7.3.260.0120.00616.47
7.3.240.0070.01216.45
7.3.230.0060.01216.32
7.3.210.0110.00516.55
7.3.200.0080.01216.33
7.3.190.0070.01416.61
7.3.180.0040.01516.30
7.3.170.0120.00916.51
7.3.160.0030.01216.43
7.3.30.0110.00014.67
7.3.20.2480.00714.71
7.3.10.2500.00714.84
7.3.00.2830.01014.57
7.2.330.0070.01116.69
7.2.320.0110.01316.64
7.2.310.0100.00616.74
7.2.300.0140.01016.68
7.2.290.0130.00616.57
7.2.160.0060.00614.92
7.2.150.2460.00715.21
7.2.140.2480.00714.66
7.2.130.2970.01014.93
7.2.120.2230.00715.08
7.2.110.2180.00714.82
7.2.100.2120.00715.05
7.2.90.3070.00715.27
7.2.80.2520.00314.99
7.2.70.2360.01314.90
7.2.60.2040.01015.13
7.2.50.2290.00715.01
7.2.40.2650.01014.94
7.2.30.2310.01714.37
7.2.20.2720.01314.95
7.2.10.2830.01015.08
7.2.00.3050.00714.86
7.1.270.2400.00313.77
7.1.260.2560.00713.57
7.1.250.2500.00713.73

preferences:
64.79 ms | 406 KiB | 6 Q