3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prefix = 'pre_'; $clients = [ (object) ['user_login' => 'foo'], (object) ['user_login' => 'bar'], (object) ['user_login' => 'buzz'], ]; $result = [ 'label' => 'Assign to user', 'desc' => 'Choose a user', 'id' => $prefix . 'client', 'type' => 'radio', 'options' => array_map( fn($user) => [ 'label' => $user->user_login, 'value' => $user->user_login, ], $clients ) ]; var_export($result);

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.0130.00820.47
8.4.110.0090.01218.73
8.4.100.0060.00318.75
8.4.90.0130.00717.92
8.4.80.0060.01217.83
8.4.70.0070.00919.72
8.4.60.0130.00717.92
8.4.50.0110.00820.47
8.4.40.0110.00017.98
8.4.30.0120.00623.91
8.4.20.0040.00419.71
8.4.10.0090.00019.39
8.3.250.0080.01019.00
8.3.240.0050.00516.66
8.3.230.0070.00316.94
8.3.220.0090.00918.98
8.3.210.0070.01316.84
8.3.200.0120.00716.70
8.3.190.0070.00717.43
8.3.180.0090.01318.97
8.3.170.0120.00617.23
8.3.160.0090.00916.64
8.3.150.0070.01019.02
8.3.140.0110.00716.88
8.3.130.0100.01018.55
8.3.120.0120.00318.89
8.3.110.0250.01816.28
8.3.100.0430.01016.52
8.3.90.0460.00716.32
8.3.80.0390.01016.46
8.3.70.0240.01716.19
8.3.60.0370.00916.31
8.3.50.0350.00916.43
8.3.40.0190.01317.48
8.3.30.0290.01117.45
8.3.20.0280.00617.21
8.3.10.0240.01017.43
8.3.00.0170.00719.29
8.2.290.0120.00716.79
8.2.280.0130.00416.93
8.2.270.0160.00316.63
8.2.260.0000.01417.17
8.2.250.0040.00416.92
8.2.240.0000.01018.54
8.2.230.0310.00316.40
8.2.220.0340.00616.48
8.2.210.0260.01316.58
8.2.200.0300.01116.34
8.2.190.0280.01216.76
8.2.180.0340.00316.49
8.2.170.0310.01217.79
8.2.160.0350.00917.74
8.2.150.0530.00717.38
8.2.140.0400.00417.55
8.2.130.0240.01817.70
8.2.120.0320.01117.59
8.2.110.0370.00717.47
8.2.100.0330.01017.53
8.2.90.0320.00917.84
8.2.80.0320.00917.44
8.2.70.0310.00717.47
8.2.60.0430.00917.14
8.2.50.0240.01817.56
8.2.40.0340.00417.81
8.2.30.0280.01117.26
8.2.20.0310.00917.62
8.2.10.0320.00717.59
8.2.00.0260.01317.38
8.1.330.0090.01016.93
8.1.320.0100.01016.39
8.1.310.0030.00516.96
8.1.300.0030.00617.92
8.1.290.0260.01516.05
8.1.280.0350.00616.05
8.1.270.0380.00317.44
8.1.260.0310.01017.00
8.1.250.0300.01717.24
8.1.240.0300.01117.32
8.1.230.0270.00617.09
8.1.220.0330.00317.19
8.1.210.0200.01317.31
8.1.200.0360.00917.13
8.1.190.0430.00317.14
8.1.180.0430.00417.06
8.1.170.0350.00017.16
8.1.160.0310.00617.12
8.1.150.0320.00617.22
8.1.140.0240.01317.05
8.1.130.0270.00717.26
8.1.120.0250.01217.31
8.1.110.0250.00717.25
8.1.100.0210.01117.38
8.1.90.0220.00417.39
8.1.80.0380.00717.21
8.1.70.0340.00817.18
8.1.60.0360.00617.39
8.1.50.0260.01517.33
8.1.40.0280.01417.33
8.1.30.0370.00317.38
8.1.20.0300.01117.38
8.1.10.0310.01117.41
8.1.00.0270.01317.16

preferences:
42.78 ms | 403 KiB | 5 Q