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'; $key = null; foreach ($userdb as $index => ['uid' => $uids]) { if (in_array([$find], $uids)) { $key = $index; break; } } echo $key ?? '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.00916.73
8.5.00.0150.00620.04
8.4.160.0110.01023.92
8.4.150.0020.00114.05
8.4.140.0100.01017.52
8.4.130.0110.00917.71
8.4.120.0100.01024.34
8.4.110.0090.00522.49
8.4.100.0070.01218.51
8.4.90.0130.00718.75
8.4.80.0090.00518.95
8.4.70.0100.00817.81
8.4.60.0100.01218.63
8.4.50.0080.01218.70
8.4.40.0120.00617.77
8.4.30.0040.01518.70
8.4.20.0170.00321.38
8.4.10.0120.00917.84
8.3.280.0110.00918.26
8.3.270.0090.01216.79
8.3.260.0130.00716.50
8.3.250.0110.00718.80
8.3.240.0130.00517.20
8.3.230.0150.00416.55
8.3.220.0090.00919.11
8.3.210.0130.00418.56
8.3.200.0060.00216.38
8.3.190.0110.00816.68
8.3.180.0070.00116.62
8.3.170.0090.00916.90
8.3.160.0190.00020.74
8.3.150.0120.00617.23
8.3.140.0360.00016.33
8.3.130.0230.00016.55
8.3.120.0190.00016.78
8.3.110.0190.00016.31
8.3.100.0190.00315.96
8.3.90.0180.00416.28
8.3.80.0100.01016.40
8.3.70.0180.00416.51
8.3.60.0130.00716.40
8.3.50.0150.00816.38
8.3.40.0210.00017.31
8.3.30.0170.00017.47
8.3.20.0080.00817.38
8.3.10.0150.00217.26
8.3.00.0040.00817.15
8.2.290.0090.00620.61
8.2.280.0140.00518.50
8.2.270.0120.00616.71
8.2.260.0110.00716.39
8.2.250.0130.00316.47
8.2.240.0090.00916.48
8.2.230.0140.00316.34
8.2.220.0130.00416.41
8.2.210.0170.00016.34
8.2.200.0130.00416.47
8.2.190.0120.00416.22
8.2.180.0140.00516.52
8.2.170.0130.00417.78
8.2.160.0200.00017.47
8.2.150.0120.00817.58
8.2.140.0120.00617.16
8.2.130.0110.00717.26
8.2.120.0060.01317.34
8.2.110.0140.00417.38
8.2.100.0160.00017.39
8.2.90.0140.00417.40
8.2.80.0150.00517.39
8.2.70.0170.00316.98
8.2.60.0150.00317.37
8.2.50.0130.00717.16
8.2.40.0170.00017.58
8.2.30.0130.00617.30
8.2.20.0090.00917.54
8.2.10.0140.00217.18
8.2.00.0110.00617.40
8.1.330.0130.00622.06
8.1.320.0120.00716.25
8.1.310.0140.00515.98
8.1.300.0120.00415.76
8.1.290.0100.00715.47
8.1.280.0150.00315.92
8.1.270.0180.00317.27
8.1.260.0150.00417.17
8.1.250.0110.00817.26
8.1.240.0170.00017.09
8.1.230.0130.00417.26
8.1.220.0170.00017.04
8.1.210.0080.00817.04
8.1.200.0100.00517.20
8.1.190.0100.00517.16
8.1.180.0160.00017.04
8.1.170.0060.00917.02
8.1.160.0120.00416.96
8.1.150.0080.00817.20
8.1.140.0160.00017.10
8.1.130.0100.00516.91
8.1.120.0180.00017.20
8.1.110.0160.00017.23
8.1.100.0120.00417.25
8.1.90.0140.00217.14
8.1.80.0100.00517.15
8.1.70.0110.00516.93
8.1.60.0140.00317.20
8.1.50.0140.00417.13
8.1.40.0150.00317.20
8.1.30.0120.00617.17
8.1.20.0170.00017.13
8.1.10.0090.00917.30
8.1.00.0130.00417.36

preferences:
40.14 ms | 403 KiB | 5 Q