3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = new SplPriorityQueue(); $q->insert('A', 2); $q->insert('B', 3); foreach ($q as $e) { echo $e; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ZKCgr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $q, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SplPriorityQueue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'insert'
          4        SEND_VAL_EX                                              'A'
          5        SEND_VAL_EX                                              2
          6        DO_FCALL                                      0          
    4     7        INIT_METHOD_CALL                                         !0, 'insert'
          8        SEND_VAL_EX                                              'B'
          9        SEND_VAL_EX                                              3
         10        DO_FCALL                                      0          
    5    11      > FE_RESET_R                                       $7      !0, ->15
         12    > > FE_FETCH_R                                               $7, !1, ->15
         13    >   ECHO                                                     !1
         14      > JMP                                                      ->12
         15    >   FE_FREE                                                  $7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.43 ms | 1394 KiB | 13 Q