3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paintings = [ ["24ef9-70076-4358c-48386.jpg", "La Donna Gravida", "649"], ["a7972-065a9-4c0f9-723d1.jpg", "Madonna and Child with the Book", "1254"], ["b054c-df208-0f600-e884e.jpg", "Madonna del Granduca", "1457"] ]; $painting = 'a7972-065a9-4c0f9-723d1.jpg'; foreach ($paintings as $index => $row) { if ($row[0] === $painting) { unset($paintings[$index]); break; // unless multiple rows might qualify } } var_export(array_values($paintings));

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.00.0140.00720.09
8.4.150.0030.00014.05
8.4.140.0140.00717.50
8.4.130.0130.00717.73
8.4.120.0110.00320.56
8.4.110.0100.00822.36
8.4.100.0110.00517.69
8.4.90.0060.00618.01
8.4.80.0070.00417.68
8.4.70.0140.00717.77
8.4.60.0080.00818.73
8.4.50.0120.00820.58
8.4.40.0060.01318.78
8.4.30.0130.00720.51
8.4.20.0080.01221.09
8.4.10.0030.00619.40
8.3.280.0190.00420.21
8.3.270.0070.00516.40
8.3.260.0140.00516.54
8.3.250.0110.00820.99
8.3.240.0070.00916.80
8.3.230.0090.01016.66
8.3.220.0130.00617.14
8.3.210.0060.00216.48
8.3.200.0030.00616.81
8.3.190.0090.00917.32
8.3.180.0140.00616.44
8.3.170.0090.00616.95
8.3.160.0080.00016.60
8.3.150.0080.00619.00
8.3.140.0080.00016.61
8.3.130.0370.00516.56
8.3.120.0280.01216.77
8.3.110.0340.00616.45
8.3.100.0400.00616.36
8.3.90.0390.00416.71
8.3.80.0470.00016.40
8.3.70.0340.00816.43
8.3.60.0310.00716.54
8.3.50.0280.01116.61
8.3.40.0260.00317.41
8.3.30.0160.02017.46
8.3.20.0230.00917.57
8.3.10.0220.01617.25
8.3.00.0300.00617.32
8.2.290.0080.00920.41
8.2.280.0100.00918.53
8.2.270.0070.01117.25
8.2.260.0120.00617.26
8.2.250.0300.00916.32
8.2.240.0290.01116.65
8.2.230.0180.01816.48
8.2.220.0280.00516.30
8.2.210.0320.00416.20
8.2.200.0270.01116.43
8.2.190.0260.01216.69
8.2.180.0280.00716.41
8.2.170.0290.00617.69
8.2.160.0270.00917.45
8.2.150.0270.01017.73
8.2.140.0420.00417.55
8.2.130.0410.00717.57
8.2.120.0280.01217.47
8.2.110.0270.01017.67
8.2.100.0390.00017.33
8.2.90.0290.01017.70
8.2.80.0320.00417.42
8.2.70.0300.00917.63
8.2.60.0350.00417.49
8.2.50.0290.01017.51
8.2.40.0250.00717.75
8.2.30.0190.00517.37
8.2.20.0230.00017.59
8.2.10.0320.00417.36
8.2.00.0290.00717.20
8.1.330.0100.00918.25
8.1.320.0090.01015.95
8.1.310.0030.00616.82
8.1.300.0290.01016.18
8.1.290.0300.00716.18
8.1.280.0360.00416.18
8.1.270.0410.00317.27
8.1.260.0240.00317.63
8.1.250.0320.00417.30
8.1.240.0330.00317.40
8.1.230.0260.00917.31
8.1.220.0280.00717.38
8.1.210.0350.00317.18
8.1.200.0300.00516.95
8.1.190.0360.00016.99
8.1.180.0310.00417.22
8.1.170.0350.00017.27
8.1.160.0330.00317.15
8.1.150.0270.01217.29
8.1.140.0330.00317.09
8.1.130.0210.01417.43
8.1.120.0300.00517.35
8.1.110.0190.01616.84
8.1.100.0290.00617.27
8.1.90.0290.00617.26
8.1.80.0280.00817.46
8.1.70.0310.00417.30
8.1.60.0380.00017.40
8.1.50.0310.00717.25
8.1.40.0310.00817.46
8.1.30.0180.00017.28
8.1.20.0370.00017.38
8.1.10.0280.00917.32
8.1.00.0290.01017.43

preferences:
52.08 ms | 403 KiB | 5 Q