3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/686Gn
function name:  (null)
number of ops:  38
compiled vars:  !0 = $myarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_DIM                                               $1, 'height'
          2        OP_DATA                                                  175
    3     3        FETCH_DIM_W                                      $3      !0, 0
          4        ASSIGN_DIM                                               $3, 'weight'
          5        OP_DATA                                                  68
    4     6        FETCH_DIM_W                                      $5      !0, 0
          7        ASSIGN_DIM                                               $5, 'age'
          8        OP_DATA                                                  44
    6     9        FETCH_DIM_W                                      $7      !0, 1
         10        ASSIGN_DIM                                               $7, 'height'
         11        OP_DATA                                                  166
    7    12        FETCH_DIM_W                                      $9      !0, 1
         13        ASSIGN_DIM                                               $9, 'weight'
         14        OP_DATA                                                  82
    8    15        FETCH_DIM_W                                      $11     !0, 1
         16        ASSIGN_DIM                                               $11, 'age'
         17        OP_DATA                                                  56
   10    18        FETCH_DIM_W                                      $13     !0, 2
         19        ASSIGN_DIM                                               $13, 'height'
         20        OP_DATA                                                  188
   11    21        FETCH_DIM_W                                      $15     !0, 2
         22        ASSIGN_DIM                                               $15, 'weight'
         23        OP_DATA                                                  82
   12    24        FETCH_DIM_W                                      $17     !0, 2
         25        ASSIGN_DIM                                               $17, 'age'
         26        OP_DATA                                                  35
   20    27        INIT_FCALL                                               'usort'
         28        SEND_REF                                                 !0
         29        INIT_FCALL                                               'build_sorter'
         30        SEND_VAL                                                 'age'
         31        DO_FCALL                                      0  $19     
         32        SEND_VAR                                                 $19
         33        DO_ICALL                                                 
   22    34        INIT_FCALL                                               'print_r'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Function build_sorter:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/686Gn
function name:  build_sorter
number of ops:  5
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          2        BIND_LEXICAL                                             ~1, !0
   17     3      > RETURN                                                   ~1
   18     4*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/686Gn
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   16     3        INIT_FCALL                                               'strnatcmp'
          4        FETCH_DIM_R                                      ~3      !0, !2
          5        SEND_VAL                                                 ~3
          6        FETCH_DIM_R                                      ~4      !1, !2
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9      > RETURN                                                   $5
   17    10*     > RETURN                                                   null

End of Dynamic Function 0

End of function build_sorter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
238.52 ms | 978 KiB | 17 Q