3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'field_bathrooms' => 'Bathrooms', 'field_bedrooms' => 'Bedrooms', 'field_king_beds' => 'King Beds', 'field_kitchen' => 'Kitchen', 'field_queen_beds' => 'Queen Beds', 'field_sleeps_max' => 'Sleeps', 'field_sofa_beds' => 'Sofa Beds', 'field_sqft' => 'Square Footage', 'field_twin_beds' => 'Twin Beds', ]; $order = [ 'Bathrooms', 'Square Footage', 'King Beds', 'Sofa Beds', 'Sleeps', 'Twin Beds', 'Queen Beds', 'Kitchen', 'Bedrooms', ]; $order = array_flip($order); uasort( $array, fn($a, $b) => $order[$a] <=> $order[$b] ); var_export($array);

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.0110.00922.52
8.4.110.0110.00918.95
8.4.100.0110.00917.70
8.4.90.0060.00420.53
8.4.80.0060.00318.81
8.4.70.0030.00518.98
8.4.60.0030.00620.58
8.4.50.0110.00820.39
8.4.40.0030.01618.71
8.4.30.0060.01020.54
8.4.20.0070.01321.08
8.4.10.0000.00819.43
8.3.250.0180.00318.90
8.3.240.0100.00816.66
8.3.230.0110.00616.68
8.3.220.0060.00218.95
8.3.210.0090.00916.38
8.3.200.0030.00616.52
8.3.190.0140.00617.22
8.3.180.0100.00918.82
8.3.170.0040.01417.10
8.3.160.0030.01018.54
8.3.150.0120.00617.41
8.3.140.0040.00416.45
8.3.130.0320.01016.24
8.3.120.0340.00716.52
8.3.110.0320.01016.32
8.3.100.0390.00816.38
8.3.90.0290.01016.31
8.3.80.0360.00316.23
8.3.70.0300.00316.44
8.3.60.0300.00316.33
8.3.50.0310.00616.53
8.3.40.0220.00717.47
8.3.30.0170.00917.47
8.3.20.0330.00617.42
8.3.10.0290.00717.49
8.3.00.0210.00417.59
8.2.290.0100.00916.99
8.2.280.0120.00718.14
8.2.270.0150.00416.77
8.2.260.0000.00817.07
8.2.250.0260.01116.41
8.2.240.0330.00716.33
8.2.230.0330.00816.50
8.2.220.0340.01016.31
8.2.210.0350.00516.34
8.2.200.0290.00916.35
8.2.190.0290.01016.70
8.2.180.0260.00716.28
8.2.170.0360.00417.60
8.2.160.0300.00617.55
8.2.150.0230.00317.40
8.2.140.0210.00817.47
8.2.130.0290.00217.51
8.2.120.0220.00717.58
8.2.110.0300.00317.51
8.2.100.0310.00217.52
8.2.90.0270.00517.70
8.2.80.0250.00417.57
8.2.70.0140.00717.58
8.2.60.0210.00417.48
8.2.50.0210.00117.59
8.2.40.0180.00417.32
8.2.30.0290.00317.47
8.2.20.0190.00917.50
8.2.10.0350.00517.55
8.2.00.0330.00617.64
8.1.330.0050.00515.94
8.1.320.0120.00716.11
8.1.310.0070.01016.35
8.1.300.0280.01116.18
8.1.290.0280.01016.29
8.1.280.0300.00916.18
8.1.270.0330.00717.33
8.1.260.0270.00917.56
8.1.250.0330.01317.30
8.1.240.0310.00417.27
8.1.230.0280.00717.41
8.1.220.0260.01017.35
8.1.210.0300.00917.24
8.1.200.0310.00817.35
8.1.190.0290.00717.19
8.1.180.0240.00917.21
8.1.170.0230.00417.16
8.1.160.0230.00317.11
8.1.150.0190.01017.01
8.1.140.0280.00717.18
8.1.130.0260.01017.18
8.1.120.0310.00617.39
8.1.110.0280.01117.22
8.1.100.0230.01117.23
8.1.90.0240.01117.36
8.1.80.0310.00817.20
8.1.70.0250.00317.19
8.1.60.0260.00517.25
8.1.50.0300.00817.32
8.1.40.0300.00817.29
8.1.30.0280.01017.44
8.1.20.0330.00517.45
8.1.10.0320.00717.26
8.1.00.0300.00617.14

preferences:
28.35 ms | 403 KiB | 5 Q