3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "username": "7291991451", "uid": "mfwUrskyhzVvzS16pS_a", "name": "Abhishek B", "status": "Active", "is_busy": true, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 2244, "yesterdays_mileage": 30498, "created_at": " 3/05/2016 5:14:12PM", "merchant_address": null, "merchant_id": null }, { "username": "7291991462", "uid": "G1knzKyuKoZK78CZySyA", "name": "Akash Gupta", "status": "Active", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": "18/05/2016 1:16:19PM", "merchant_address": null, "merchant_id": null }, { "username": "7291991456", "uid": "ndHsmz-BvyXfjv42MTyd", "name": "Ankur Sagar", "status": "Archived", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 3/05/2016 5:36:00PM", "merchant_address": null, "merchant_id": null }, { "username": "7503710039", "uid": "j-w2jxx14s6GgF_YkcFP", "name": "Annu Gupta", "status": "Archived", "is_busy": false, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 2/09/2016 12:59:13PM", "merchant_address": null, "merchant_id": null }, { "username": "9599380369", "uid": "KarAFisqeRpcr_xtEhEB", "name": "Arun Kumar", "status": "Active", "is_busy": true, "duty_day_bits": "1111111", "duty_start_time": null, "duty_end_time": null, "vehicle": null, "vehicle_type": null, "todays_mileage": 0, "yesterdays_mileage": 0, "created_at": " 5/05/2016 1:30:33PM", "merchant_address": null, "merchant_id": null }]'; $users = json_decode($json, true); $active = array_filter($users, function($user) { return $user['status'] != 'Archived'; }); print_r($active);
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
Array ( [0] => Array ( [username] => 7291991451 [uid] => mfwUrskyhzVvzS16pS_a [name] => Abhishek B [status] => Active [is_busy] => 1 [duty_day_bits] => 1111111 [duty_start_time] => [duty_end_time] => [vehicle] => [vehicle_type] => [todays_mileage] => 2244 [yesterdays_mileage] => 30498 [created_at] => 3/05/2016 5:14:12PM [merchant_address] => [merchant_id] => ) [1] => Array ( [username] => 7291991462 [uid] => G1knzKyuKoZK78CZySyA [name] => Akash Gupta [status] => Active [is_busy] => [duty_day_bits] => 1111111 [duty_start_time] => [duty_end_time] => [vehicle] => [vehicle_type] => [todays_mileage] => 0 [yesterdays_mileage] => 0 [created_at] => 18/05/2016 1:16:19PM [merchant_address] => [merchant_id] => ) [4] => Array ( [username] => 9599380369 [uid] => KarAFisqeRpcr_xtEhEB [name] => Arun Kumar [status] => Active [is_busy] => 1 [duty_day_bits] => 1111111 [duty_start_time] => [duty_end_time] => [vehicle] => [vehicle_type] => [todays_mileage] => 0 [yesterdays_mileage] => 0 [created_at] => 5/05/2016 1:30:33PM [merchant_address] => [merchant_id] => ) )

preferences:
88.43 ms | 413 KiB | 5 Q