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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5KMaC
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json, !1 = $users, !2 = $active
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%0A++%7B%0A++++%22username%22%3A+%227291991451%22%2C%0A++++%22uid%22%3A+%22mfwUrskyhzVvzS16pS_a%22%2C%0A++++%22name%22%3A+%22Abhishek+B%22%2C%0A++++%22status%22%3A+%22Active%22%2C%0A++++%22is_busy%22%3A+true%2C%0A++++%22duty_day_bits%22%3A+%221111111%22%2C%0A++++%22duty_start_time%22%3A+null%2C%0A++++%22duty_end_time%22%3A+null%2C%0A++++%22vehicle%22%3A+null%2C%0A++++%22vehicle_type%22%3A+null%2C%0A++++%22todays_mileage%22%3A+2244%2C%0A++++%22yesterdays_mileage%22%3A+30498%2C%0A++++%22created_at%22%3A+%22+3%2F05%2F2016++5%3A14%3A12PM%22%2C%0A++++%22merchant_address%22%3A+null%2C%0A++++%22merchant_id%22%3A+null%0A++%7D%2C%0A++%7B%0A++++%22username%22%3A+%227291991462%22%2C%0A++++%22uid%22%3A+%22G1knzKyuKoZK78CZySyA%22%2C%0A++++%22name%22%3A+%22Akash+Gupta%22%2C%0A++++%22status%22%3A+%22Active%22%2C%0A++++%22is_busy%22%3A+false%2C%0A++++%22duty_day_bits%22%3A+%221111111%22%2C%0A++++%22duty_start_time%22%3A+null%2C%0A++++%22duty_end_time%22%3A+null%2C%0A++++%22vehicle%22%3A+null%2C%0A++++%22vehicle_type%22%3A+null%2C%0A++++%22todays_mileage%22%3A+0%2C%0A++++%22yesterdays_mileage%22%3A+0%2C%0A++++%22created_at%22%3A+%2218%2F05%2F2016++1%3A16%3A19PM%22%2C%0A++++%22merchant_address%22%3A+null%2C%0A++++%22merchant_id%22%3A+null%0A++%7D%2C%0A++%7B%0A++++%22username%22%3A+%227291991456%22%2C%0A++++%22uid%22%3A+%22ndHsmz-BvyXfjv42MTyd%22%2C%0A++++%22name%22%3A+%22Ankur+Sagar%22%2C%0A++++%22status%22%3A+%22Archived%22%2C%0A++++%22is_busy%22%3A+false%2C%0A++++%22duty_day_bits%22%3A+%221111111%22%2C%0A++++%22duty_start_time%22%3A+null%2C%0A++++%22duty_end_time%22%3A+null%2C%0A++++%22vehicle%22%3A+null%2C%0A++++%22vehicle_type%22%3A+null%2C%0A++++%22todays_mileage%22%3A+0%2C%0A++++%22yesterdays_mileage%22%3A+0%2C%0A++++%22created_at%22%3A+%22+3%2F05%2F2016++5%3A36%3A00PM%22%2C%0A++++%22merchant_address%22%3A+null%2C%0A++++%22merchant_id%22%3A+null%0A++%7D%2C%0A++%7B%0A++++%22username%22%3A+%227503710039%22%2C%0A++++%22uid%22%3A+%22j-w2jxx14s6GgF_YkcFP%22%2C%0A++++%22name%22%3A+%22Annu+Gupta%22%2C%0A++++%22status%22%3A+%22Archived%22%2C%0A++++%22is_busy%22%3A+false%2C%0A++++%22duty_day_bits%22%3A+%221111111%22%2C%0A++++%22duty_start_time%22%3A+null%2C%0A++++%22duty_end_time%22%3A+null%2C%0A++++%22vehicle%22%3A+null%2C%0A++++%22vehicle_type%22%3A+null%2C%0A++++%22todays_mileage%22%3A+0%2C%0A++++%22yesterdays_mileage%22%3A+0%2C%0A++++%22created_at%22%3A+%22+2%2F09%2F2016+12%3A59%3A13PM%22%2C%0A++++%22merchant_address%22%3A+null%2C%0A++++%22merchant_id%22%3A+null%0A++%7D%2C%0A++%7B%0A++++%22username%22%3A+%229599380369%22%2C%0A++++%22uid%22%3A+%22KarAFisqeRpcr_xtEhEB%22%2C%0A++++%22name%22%3A+%22Arun+Kumar%22%2C%0A++++%22status%22%3A+%22Active%22%2C%0A++++%22is_busy%22%3A+true%2C%0A++++%22duty_day_bits%22%3A+%221111111%22%2C%0A++++%22duty_start_time%22%3A+null%2C%0A++++%22duty_end_time%22%3A+null%2C%0A++++%22vehicle%22%3A+null%2C%0A++++%22vehicle_type%22%3A+null%2C%0A++++%22todays_mileage%22%3A+0%2C%0A++++%22yesterdays_mileage%22%3A+0%2C%0A++++%22created_at%22%3A+%22+5%2F05%2F2016++1%3A30%3A33PM%22%2C%0A++++%22merchant_address%22%3A+null%2C%0A++++%22merchant_id%22%3A+null%0A++%7D%5D'
   90     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   92     6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !1
          8        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
   94     9        SEND_VAL                                                 ~6
   92    10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
   96    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5KMaC
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   92     0  E >   RECV                                             !0      
   93     1        FETCH_DIM_R                                      ~1      !0, 'status'
          2        IS_NOT_EQUAL                                     ~2      ~1, 'Archived'
          3      > RETURN                                                   ~2
   94     4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.01 ms | 1452 KiB | 16 Q