3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = new SplPriorityQueue(); $q->insert(1, 1); $q->insert(2, 2); $q->setExtractFlags(SplPriorityQueue::EXTR_BOTH); $c = clone $q; var_dump($q->top()); var_dump($c->top());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lpKJ0
function name:  (null)
number of ops:  27
compiled vars:  !0 = $q, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplPriorityQueue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'insert'
          4        SEND_VAL_EX                                              1
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0          
    5     7        INIT_METHOD_CALL                                         !0, 'insert'
          8        SEND_VAL_EX                                              2
          9        SEND_VAL_EX                                              2
         10        DO_FCALL                                      0          
    6    11        INIT_METHOD_CALL                                         !0, 'setExtractFlags'
         12        SEND_VAL_EX                                              3
         13        DO_FCALL                                      0          
    8    14        CLONE                                            ~8      !0
         15        ASSIGN                                                   !1, ~8
    9    16        INIT_FCALL                                               'var_dump'
         17        INIT_METHOD_CALL                                         !0, 'top'
         18        DO_FCALL                                      0  $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                                 
   10    21        INIT_FCALL                                               'var_dump'
         22        INIT_METHOD_CALL                                         !1, 'top'
         23        DO_FCALL                                      0  $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1395 KiB | 15 Q