3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplPriorityQueue(); $a->insert(new stdClass, 3); $a->insert(array(), 2); $a->insert(new DateTime, 5); var_dump(count($a)); var_dump(iterator_to_array($a)); var_dump(count($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdgHU
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplPriorityQueue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'insert'
          4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        SEND_VAL_EX                                              3
          8        DO_FCALL                                      0          
    5     9        INIT_METHOD_CALL                                         !0, 'insert'
         10        SEND_VAL_EX                                              <array>
         11        SEND_VAL_EX                                              2
         12        DO_FCALL                                      0          
    6    13        INIT_METHOD_CALL                                         !0, 'insert'
         14        NEW                                              $8      'DateTime'
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $8
         17        SEND_VAL_EX                                              5
         18        DO_FCALL                                      0          
    8    19        INIT_FCALL                                               'var_dump'
         20        COUNT                                            ~11     !0
         21        SEND_VAL                                                 ~11
         22        DO_ICALL                                                 
    9    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'iterator_to_array'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        SEND_VAR                                                 $13
         28        DO_ICALL                                                 
   10    29        INIT_FCALL                                               'var_dump'
         30        COUNT                                            ~15     !0
         31        SEND_VAL                                                 ~15
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.82 ms | 1396 KiB | 17 Q