3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = [ [1, 2, "file1.png"], [1, 3, "file2.png"], [1, 4, "file3.png"], ]; $coords = [1, 3]; echo array_find( $testArray, fn($row) => $coords === [$row[0], $row[1]] )[2] ?? 'Not Found';

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.30.0120.00517.75
8.5.20.0100.00820.16
8.5.10.0100.00716.81
8.5.00.0130.00819.92
8.4.180.0130.01119.65
8.4.170.0120.00923.76
8.4.160.0130.00823.92
8.4.150.0020.00014.05
8.4.140.0110.00917.71
8.4.130.0040.00518.00
8.4.120.0140.00824.05
8.4.110.0090.00722.64
8.4.100.0090.01218.55
8.4.90.0090.00318.75
8.4.80.0040.00518.63
8.4.70.0040.00417.84
8.4.60.0060.01118.86
8.4.50.0140.00618.66
8.4.40.0100.01017.74
8.4.30.0180.00618.68
8.4.20.0230.00717.44
8.4.10.0180.00417.31
8.3.300.0070.01420.75
8.3.290.0120.01020.82
8.3.280.0160.00918.26
8.3.270.0110.00816.52
8.3.260.0120.00716.45
8.3.250.0080.01118.96
8.3.240.0120.00717.10
8.3.230.0070.01116.29
8.3.220.0100.00918.86
8.3.210.0110.00818.67
8.3.200.0070.00216.61
8.3.190.0100.00416.58
8.3.180.0120.00716.79
8.3.170.0000.00717.07
8.3.160.0030.00517.04
8.3.150.0190.00916.49
8.3.140.0130.01516.41
8.3.130.0170.00116.59
8.3.120.0140.00316.47
8.3.110.0140.00416.21
8.3.100.0160.00616.52
8.3.90.0180.00316.36
8.3.80.0170.00316.40
8.3.70.0190.00216.58
8.3.60.0190.00116.44
8.3.50.0200.00016.45
8.3.40.0130.00517.16
8.3.30.0120.00617.52
8.3.20.0120.00617.14
8.3.10.0190.00017.46
8.3.00.0150.00117.41
8.2.300.0120.00918.23
8.2.290.0100.01020.32
8.2.280.0060.00316.73
8.2.270.0170.00316.68
8.2.260.0130.00416.63
8.2.250.0170.00216.63
8.2.240.0160.00316.63
8.2.230.0220.00216.35
8.2.220.0120.00616.71
8.2.210.0140.00416.35
8.2.200.0130.00416.35
8.2.190.0120.00616.54
8.2.180.0070.00916.56
8.2.170.0100.00917.46
8.2.160.0140.00717.41
8.2.150.0170.00417.29
8.2.140.0240.00217.17
8.2.130.0130.00617.39
8.2.120.0120.00617.37
8.2.110.0120.00517.26
8.2.100.0190.00017.29
8.2.90.0180.00217.42
8.2.80.0160.00317.26
8.2.70.0130.00417.25
8.2.60.0140.00317.10
8.2.50.0090.00917.13
8.2.40.0150.00217.33
8.2.30.0170.00317.09
8.2.20.0220.00317.16
8.2.10.0130.00517.23
8.2.00.0160.00417.36
8.1.340.0150.01017.82
8.1.320.0090.01016.17

preferences:
70.07 ms | 403 KiB | 5 Q