3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myWondersArray = array ( 0 => (object) array( 'currentUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 3 - Helping Mom (Part 1/3)', 'currentUnitPart' => 'wonderskills/starter_book_2/unit_3_helping_mom/part_1/', ), 1 => (object) array( 'currentUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 3 - Helping Mom (Part 2/3)', 'currentUnitPart' => 'wonderskills/starter_book_2/unit_3_helping_mom/part_2/', ), 2 => (object) array( 'currentUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 3 - Helping Mom (Part 3/3)', 'currentUnitPart' => 'wonderskills/starter_book_2/unit_3_helping_mom/part_3/', ), 3 => (object) array( 'previousUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 2 - Sid\'s New Neighbors (Part 1/3)', 'previousUnitPart' => 'wonderskills/starter_book_2/unit_2_sids_new_neighbors/part_1/', ), 4 => (object) array( 'previousUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 2 - Sid\'s New Neighbors (Part 2/3)', 'previousUnitPart' => 'wonderskills/starter_book_2/unit_2_sids_new_neighbors/part_2/', ), 5 => (object) array( 'previousUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 2 - Sid\'s New Neighbors (Part 3/3)', 'previousUnitPart' => 'wonderskills/starter_book_2/unit_2_sids_new_neighbors/part_3/', ), 6 => (object) array( 'nextUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 4 - Food from the Garden (Part 1/3)', 'nextUnitPart' => 'wonderskills/starter_book_2/unit_4_food_from_the_garden/part_1/', ), 7 => (object) array( 'nextUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 4 - Food from the Garden (Part 2/3)', 'nextUnitPart' => 'wonderskills/starter_book_2/unit_4_food_from_the_garden/part_2/', ), 8 => (object) array( 'nextUnitDisplay' => 'WonderSkills: Starter Book 2, Unit 4 - Food from the Garden (Part 3/3)', 'nextUnitPart' => 'wonderskills/starter_book_2/unit_4_food_from_the_garden/part_3/', ), ); $priorities = array_flip(['prev', 'curr', 'next']); array_multisort( array_map(fn($obj) => $priorities[substr(key((array) $obj), 0, 4)] ?? PHP_INT_MAX, $myWondersArray), $myWondersArray ); var_export($myWondersArray);

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.00.0080.01420.29
8.4.150.0020.00114.05
8.4.140.0150.00617.88
8.4.130.0140.00717.79
8.4.120.0090.00220.75
8.4.110.0050.00422.53
8.4.100.0090.01217.73
8.4.90.0130.00717.87
8.4.80.0130.00617.92
8.4.70.0150.00918.16
8.4.60.0080.00618.88
8.4.50.0130.00722.56
8.4.40.0080.00818.89
8.4.30.0030.01520.85
8.4.20.0030.01720.69
8.4.10.0130.00619.42
8.3.280.0090.01118.64
8.3.270.0120.00716.80
8.3.260.0070.00216.89
8.3.250.0090.01018.82
8.3.240.0140.00416.84
8.3.230.0060.00516.75
8.3.220.0030.00617.23
8.3.210.0080.00616.84
8.3.200.0050.00416.86
8.3.190.0080.01117.29
8.3.180.0080.01016.63
8.3.170.0120.00620.78
8.3.160.0070.01117.25
8.3.150.0090.00917.31
8.3.140.0050.00316.83
8.3.130.0130.00618.34
8.3.120.0040.00420.70
8.3.110.0040.00416.63
8.3.100.0130.00618.43
8.3.90.0000.00816.96
8.3.80.0060.00618.43
8.3.70.0110.00718.43
8.3.60.0190.00625.92
8.3.50.0150.00325.92
8.3.40.0110.01425.92
8.3.30.0130.01025.92
8.3.20.0150.00825.92
8.3.10.0070.01125.92
8.3.00.0120.00925.92
8.2.290.0090.00820.66
8.2.280.0120.00920.06
8.2.270.0030.00619.21
8.2.260.0150.00317.25
8.2.250.0080.00018.44
8.2.240.0080.00017.18
8.2.230.0100.01020.94
8.2.220.0000.00924.06
8.2.210.0070.01026.77
8.2.200.0030.00718.30
8.2.190.0110.00416.63
8.2.180.0120.00625.92
8.2.170.0000.01825.92
8.2.160.0130.00625.92
8.2.150.0200.00325.92
8.2.140.0150.01225.92
8.2.130.0240.01225.92
8.2.120.0300.00025.92
8.2.110.0220.00425.92
8.2.100.0260.00325.92
8.2.90.0220.00425.92
8.2.80.0180.00925.92
8.2.70.0240.00625.92
8.2.60.0200.01025.92
8.2.50.0210.00525.92
8.2.40.0280.00025.92
8.2.30.0240.00825.92
8.2.20.0230.00625.92
8.2.10.0240.00725.92
8.2.00.0230.01025.92
8.1.330.0110.00922.09
8.1.320.0120.00816.13
8.1.310.0070.00716.67
8.1.300.0110.00718.52
8.1.290.0060.00318.88
8.1.280.0210.00325.92
8.1.270.0160.01025.92
8.1.260.0220.00925.92
8.1.250.0290.00325.92
8.1.240.0290.00425.92
8.1.230.0130.01325.92
8.1.220.0170.01025.92
8.1.210.0170.00825.92
8.1.200.0240.00325.92
8.1.190.0190.01425.92
8.1.180.0190.00425.92
8.1.170.0100.01725.92
8.1.160.0270.00025.92
8.1.150.0120.01525.92
8.1.140.0270.00025.92
8.1.130.0180.00725.92
8.1.120.0210.00725.92
8.1.110.0240.00025.92
8.1.100.0150.00925.92
8.1.90.0170.01025.92
8.1.80.0190.01225.92
8.1.70.0140.01125.92
8.1.60.0120.01225.92
8.1.50.0250.00325.92
8.1.40.0210.00425.92
8.1.30.0220.00625.92
8.1.20.0280.00325.92
8.1.10.0280.00325.92
8.1.00.0260.00025.92

preferences:
28.45 ms | 403 KiB | 5 Q