3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( "0" => array ( "q_status" => "Closed", "q_is_refunded" => "No", "qb_bid_status" => "2", "u_user_type" => "Tutor", "total_tutor" => "1", "target_date" => "0000-00-00 00:00:00", "bid_price" => "50.00", "users_id" => "3", "profile_image" => "http://localhost/studygate/WS/image_resize/?pic=aHR0cDovL2xvY2FsaG9zdC9zdHVkeWdhdGUvcHVibGljL2ltYWdlcy9ub2ltYWdlLmdpZg==&height=110&width=110&color=FFFFFF", "first_name" => "Carlene", "last_name" => "Poblete", "added_date" => "2016-10-25 11:20:00", "question_id" => "1" ), "1" => array ( "q_status" => "Closed", "q_is_refunded" => "No", "qb_bid_status" => "2", "u_user_type" => "Tutor", "total_tutor" => "1", "target_date" => "0000-00-00 00:00:00", "bid_price" => "80.00", "users_id" => "12", "profile_image" => "http://localhost/studygate/WS/age_resize/?pic=aHR0cDovL2xvY2FsaG9zdC9zdHVkeWdhdGUv", "first_name" => "George", "last_name" => "Henry", "added_date" => "2016-10-24 20:24:30", "question_id" => "2" ) ); //$arr = array_filter($array,function($v,$k){return $v['bid_price'] > 15;}); $arr = array_filter($array, function($v, $k) { return $v['bid_price'] > 60; },ARRAY_FILTER_USE_BOTH); sort($arr); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TS6Zg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   42     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTS6Zg%3A42%240'
   44     4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
   42     7        ASSIGN                                                   !1, $4
   45     8        INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
   46    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTS6Zg%3A42%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TS6Zg
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   42     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   43     2        FETCH_DIM_R                                      ~2      !0, 'bid_price'
          3        IS_SMALLER                                       ~3      60, ~2
          4      > RETURN                                                   ~3
   44     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTS6Zg%3A42%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1395 KiB | 19 Q