3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'rows' => [ [ 'sub1' => 'Spain', 'impressions' => 1022, 'earnings' => 0.13 ], [ 'sub1' => 'Germany', 'impressions' => 801, 'earnings' => 0.01 ], [ 'sub1' => 'Italy', 'impressions' => 684, 'earnings' => 0.35 ] ] ]; $find = 'Germany'; var_export( array_find( $array['rows'], fn($row) => $row['sub1'] === $find ) );

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.0080.00917.81
8.5.20.0060.01020.14
8.5.10.0120.00916.62
8.5.00.0120.00920.19
8.4.180.0100.01219.61
8.4.170.0100.01120.23
8.4.160.0100.01020.63
8.4.150.0070.00516.92
8.4.140.0110.01017.75
8.4.130.0150.00420.38
8.4.120.0130.00420.26
8.4.110.0110.00918.64
8.4.100.0040.00518.62
8.4.90.0130.00720.65
8.4.80.0060.00318.70
8.4.70.0110.00919.12
8.4.60.0060.00318.92
8.4.50.0090.01218.51
8.4.40.0110.01119.56
8.4.30.0340.00617.50
8.4.20.0140.01219.45
8.4.10.0160.00517.49
8.3.300.0090.01220.74
8.3.290.0070.00620.87
8.3.280.0140.01018.36
8.3.270.0120.00916.69
8.3.260.0120.00516.61
8.3.250.0050.00418.94
8.3.240.0120.00716.72
8.3.230.0120.00816.61
8.3.220.0110.00818.72
8.3.210.0120.00716.52
8.3.200.0030.00516.45
8.3.190.0130.00717.00
8.3.180.0130.00618.74
8.3.170.0060.01317.15
8.3.160.0060.00318.47
8.3.150.0200.00016.69
8.3.140.0150.00616.30
8.3.130.0150.00416.39
8.3.120.0150.00516.29
8.3.110.0140.00516.18
8.3.100.0200.00016.24
8.3.90.0130.00716.07
8.3.80.0160.00316.75
8.3.70.0130.01016.54
8.3.60.0170.00416.43
8.3.50.0130.00916.22
8.3.40.0190.00017.38
8.3.30.0140.00417.49
8.3.20.0090.00917.39
8.3.10.0100.00617.33
8.3.00.0080.00217.51
8.2.300.0100.01120.45
8.2.290.0110.00820.32
8.2.280.0100.00918.37
8.2.270.0130.00316.80
8.2.260.0150.00316.42
8.2.250.0130.00316.45
8.2.240.0140.00416.54
8.2.230.0150.00416.43
8.2.220.0140.00416.64
8.2.210.0170.00016.46
8.2.200.0120.00618.07
8.2.190.0140.00316.36
8.2.180.0110.00616.70
8.2.170.0150.00417.42
8.2.160.0180.00017.57
8.2.150.0140.00317.32
8.2.140.0110.00717.27
8.2.130.0170.00017.19
8.2.120.0140.00517.29
8.2.110.0130.00717.15
8.2.100.0130.00317.39
8.2.90.0060.01117.51
8.2.80.0170.00017.14
8.2.70.0170.00017.28
8.2.60.0160.00317.36
8.2.50.0140.00317.16
8.2.40.0130.00617.37
8.2.30.0110.00417.48
8.2.20.0250.00317.38
8.2.10.0190.00617.23
8.2.00.0120.01617.34
8.1.340.0070.01320.18
8.1.320.0110.00716.22

preferences:
42.11 ms | 855 KiB | 5 Q