3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = [ [ 'uid' => [ ['10770'], ['523465'], ['4042389'] ], 'name' => 'Sandra Shush', 'url' => 'urlof100' ], [ 'uid' => [ ['102320'], ['532465'], ['40432389'] ], 'name' => 'Stefanie Mcmohn', 'pic_square' => 'urlof100' ] ]; $find = '523465'; echo array_find_key( $userdb, fn($item) => in_array([$find], $item['uid']) ) ?? '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.10.0090.00716.74
8.5.00.0130.00820.00
8.4.160.0100.01223.83
8.4.150.0020.00014.05
8.4.140.0120.00917.81
8.4.130.0120.00817.80
8.4.120.0120.00820.48
8.4.110.0140.00622.33
8.4.100.0120.00817.81
8.4.90.0130.00817.83
8.4.80.0030.00519.66
8.4.70.0080.01217.75
8.4.60.0130.00717.84
8.4.50.0130.00718.62
8.4.40.0080.00817.62
8.4.30.0060.01218.82
8.4.20.0140.00721.39
8.4.10.0130.00319.50
8.3.280.0030.00014.05
8.3.270.0100.00916.69
8.3.260.0140.00516.38
8.3.250.0120.00718.93
8.3.240.0060.00416.62
8.3.230.0130.00616.61
8.3.220.0110.00417.09
8.3.210.0130.00516.79
8.3.200.0110.00916.92
8.3.190.0090.00516.60
8.3.180.0040.00516.56
8.3.170.0150.00416.77
8.3.160.0070.01020.63
8.3.150.0110.00817.14
8.3.140.0150.00418.36
8.3.130.0080.00818.25
8.3.120.0110.00618.07
8.3.110.0110.00718.15
8.3.100.0170.00316.60
8.3.90.0180.00416.52
8.3.80.0100.01016.31
8.3.70.0180.00316.30
8.3.60.0180.00416.23
8.3.50.0170.00317.97
8.3.40.0150.00417.45
8.3.30.0150.00317.16
8.3.20.0120.00617.45
8.3.10.0160.00217.56
8.3.00.0070.00417.28
8.2.290.0070.00120.23
8.2.280.0110.00716.61
8.2.270.0130.00616.89
8.2.260.0160.00316.44
8.2.250.0150.00318.67
8.2.240.0100.00716.35
8.2.230.0140.00416.47
8.2.220.0110.00516.74
8.2.210.0170.00016.43
8.2.200.0100.00618.31
8.2.190.0170.00016.49
8.2.180.0130.00518.13
8.2.170.0160.00317.49
8.2.160.0160.00217.58
8.2.150.0110.00619.25
8.2.140.0070.01117.58
8.2.130.0160.00417.31
8.2.120.0140.00419.29
8.2.110.0140.00317.16
8.2.100.0120.00617.31
8.2.90.0140.00317.34
8.2.80.0130.00517.39
8.2.70.0060.01117.22
8.2.60.0100.01018.97
8.2.50.0130.00417.57
8.2.40.0120.00419.09
8.2.30.0060.01017.40
8.2.20.0170.00017.34
8.2.10.0180.00017.54
8.2.00.0110.00517.11
8.1.330.0100.01120.34
8.1.320.0110.00818.09
8.1.310.0170.00016.22
8.1.300.0140.00315.95
8.1.290.0170.00017.80
8.1.280.0130.00316.18
8.1.270.0090.00917.18
8.1.260.0130.00618.61
8.1.250.0150.00317.12
8.1.240.0050.01117.04
8.1.230.0160.00017.16
8.1.220.0170.00018.83
8.1.210.0080.00817.31
8.1.200.0100.01016.96
8.1.190.0100.00718.69
8.1.180.0110.00417.06
8.1.170.0000.01617.20
8.1.160.0170.00018.91
8.1.150.0050.01117.03
8.1.140.0070.01016.95
8.1.130.0100.00617.22
8.1.120.0140.00316.87
8.1.110.0130.00316.98
8.1.100.0130.00317.10
8.1.90.0110.00616.95
8.1.80.0110.00518.74
8.1.70.0110.00416.91
8.1.60.0090.00917.04
8.1.50.0140.00317.41
8.1.40.0130.00717.09
8.1.30.0180.00018.98
8.1.20.0080.00817.25
8.1.10.0150.00417.34
8.1.00.0130.00517.27

preferences:
37.79 ms | 403 KiB | 5 Q