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/oIOoD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $testArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   85     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'sort_points'
          4        DO_ICALL                                                 
   86     5        INIT_FCALL                                               'print_r'
          6        FETCH_DIM_R                                      ~3      !0, 0
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function sum_points:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/oIOoD
function name:  sum_points
number of ops:  22
compiled vars:  !0 = $v, !1 = $totalPoints, !2 = $lset, !3 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   66     0  E >   RECV                                             !0      
   67     1        ASSIGN                                                   !1, 0
   68     2        FETCH_DIM_R                                      ~5      !0, 'lineupSet'
          3      > FE_RESET_R                                       $6      ~5, ->19
          4    > > FE_FETCH_R                                               $6, !2, ->19
   69     5    >   ISSET_ISEMPTY_DIM_OBJ                         0          !2, 'formula'
          6      > JMPZ                                                     ~7, ->11
   70     7    >   FETCH_DIM_R                                      ~8      !2, 'formula'
          8        FETCH_DIM_R                                      ~9      ~8, 'totalPoints'
          9        ASSIGN_OP                                     1          !1, ~9
   69    10      > JMP                                                      ->18
   73    11    > > FE_RESET_R                                       $11     !2, ->17
         12    > > FE_FETCH_R                                               $11, !3, ->17
   74    13    >   FETCH_DIM_R                                      ~12     !3, 'formula'
         14        FETCH_DIM_R                                      ~13     ~12, 'totalPoints'
         15        ASSIGN_OP                                     1          !1, ~13
   73    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $11
   68    18    > > JMP                                                      ->4
         19    >   FE_FREE                                                  $6
   78    20      > RETURN                                                   !1
   79    21*     > RETURN                                                   null

End of function sum_points

Function sort_points:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oIOoD
function name:  sort_points
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   82     2        INIT_FCALL                                               'sum_points'
          3        SEND_VAR                                                 !1
          4        DO_FCALL                                      0  $2      
          5        INIT_FCALL                                               'sum_points'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $3      
          8        SUB                                              ~4      $2, $3
          9      > RETURN                                                   ~4
   83    10*     > RETURN                                                   null

End of function sort_points

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.05 ms | 977 KiB | 17 Q