3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = [ [ 'uid' => '100', 'name' => 'Sandra Shush', 'pic_square' => 'urlof100' ], [ 'uid' => '5465', 'name' => 'Stefanie Mcmohn', 'pic_square' => 'urlof100' ], [ 'uid' => '40489', 'name' => 'Michael', 'pic_square' => 'urlof40489' ] ]; $uid = 100; var_export( array_find_key( $userdb, fn($row) => $row['uid'] == $uid ) );

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.4.120.0090.00824.03
8.4.110.0050.00518.80
8.4.100.0120.01018.64
8.4.90.0050.00320.61
8.4.80.0100.00918.72
8.4.70.0040.00418.82
8.4.60.0100.00718.71
8.4.50.0110.00918.61
8.4.40.0150.00318.57
8.4.30.0190.00018.75
8.4.20.0070.01421.36
8.4.10.0100.00719.50
8.3.250.0120.00718.85
8.3.240.0110.00717.02
8.3.230.0090.00116.66
8.3.220.0140.00418.92
8.3.210.0060.00218.73
8.3.200.0050.00416.60
8.3.190.0080.00816.96
8.3.180.0110.00918.91
8.3.170.0090.01017.36
8.3.160.0150.00418.32
8.3.150.0040.01417.28
8.3.140.0070.00716.85
8.3.130.0290.01116.62
8.3.120.0290.01216.33
8.3.110.0370.00316.71
8.3.100.0400.00316.51
8.3.90.0400.00616.68
8.3.80.0370.00716.46
8.3.70.0300.01016.48
8.3.60.0320.01116.47
8.3.50.0420.00316.79
8.3.40.0290.00617.54
8.3.30.0280.01217.41
8.3.20.0380.01317.36
8.3.10.0370.00017.53
8.3.00.0080.01617.34
8.2.290.0040.00522.43
8.2.280.0100.00618.63
8.2.270.0080.00016.62
8.2.260.0040.00416.95
8.2.250.0350.00316.67
8.2.240.0280.01416.54
8.2.230.0330.00416.36
8.2.220.0310.00016.57
8.2.210.0250.01116.63
8.2.200.0370.00016.52
8.2.190.0260.01316.60
8.2.180.0340.00916.21
8.2.170.0320.01117.77
8.2.160.0340.00617.66
8.2.150.0370.00317.63
8.2.140.0340.00617.54
8.2.130.0290.00717.47
8.2.120.0300.00417.34
8.2.110.0250.00717.67
8.2.100.0260.00617.50
8.2.90.0380.00017.26
8.2.80.0290.01017.43
8.2.70.0350.00417.42
8.2.60.0300.01017.53
8.2.50.0270.00817.53
8.2.40.0200.01017.43
8.2.30.0330.00017.34
8.2.20.0310.00617.46
8.2.10.0300.00617.52
8.2.00.0390.00817.35
8.1.330.0120.00621.94
8.1.320.0040.00816.16
8.1.310.0150.00316.58
8.1.300.0370.01216.21
8.1.290.0270.01216.21
8.1.280.0350.00416.21
8.1.270.0310.01217.21
8.1.260.0200.01317.59
8.1.250.0290.01317.28
8.1.240.0250.00617.06
8.1.230.0220.01317.16
8.1.220.0250.01116.85
8.1.210.0340.01016.78
8.1.200.0300.01017.16
8.1.190.0290.00716.66
8.1.180.0240.01216.92
8.1.170.0250.01017.14
8.1.160.0190.01617.01
8.1.150.0230.01217.24
8.1.140.0300.00316.89
8.1.130.0230.01316.99
8.1.120.0250.01117.32
8.1.110.0220.00917.20
8.1.100.0290.00316.98
8.1.90.0220.00617.12
8.1.80.0250.00417.17
8.1.70.0320.00417.03
8.1.60.0220.01117.24
8.1.50.0290.01117.14
8.1.40.0210.01217.35
8.1.30.0280.00717.11
8.1.20.0290.00617.45
8.1.10.0400.00317.16
8.1.00.0370.00317.10

preferences:
28.99 ms | 403 KiB | 5 Q