3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heap = new SplMinHeap; $ins = new StdClass(); $ins->two = 2; $ins->three = 3; $ins->one = 1; $heap->insert($ins); $ins = new StdClass(); $ins->one = 1; $ins->two = 2; $ins->three = 3; $heap->insert($ins); $heap->insert([1, 1, 0]); $heap->insert([2, 2, 1]); $heap->insert([1, 2, 1]); $heap->insert([2, 1, 3]); $heap->insert([1,1,1]); $heap->insert([1, 1, 3]); foreach ($heap as $item) { echo var_dump($item) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 46, Position 2 = 53
Branch analysis from position: 46
2 jumps found. (Code = 78) Position 1 = 47, Position 2 = 53
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
filename:       /in/Oj0Zb
function name:  (null)
number of ops:  55
compiled vars:  !0 = $heap, !1 = $ins, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'SplMinHeap'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        NEW                                              $6      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    4     6        ASSIGN_OBJ                                               !1, 'two'
          7        OP_DATA                                                  2
    5     8        ASSIGN_OBJ                                               !1, 'three'
          9        OP_DATA                                                  3
    6    10        ASSIGN_OBJ                                               !1, 'one'
         11        OP_DATA                                                  1
    7    12        INIT_METHOD_CALL                                         !0, 'insert'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
    8    15        NEW                                              $13     'StdClass'
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !1, $13
    9    18        ASSIGN_OBJ                                               !1, 'one'
         19        OP_DATA                                                  1
   10    20        ASSIGN_OBJ                                               !1, 'two'
         21        OP_DATA                                                  2
   11    22        ASSIGN_OBJ                                               !1, 'three'
         23        OP_DATA                                                  3
   12    24        INIT_METHOD_CALL                                         !0, 'insert'
         25        SEND_VAR_EX                                              !1
         26        DO_FCALL                                      0          
   13    27        INIT_METHOD_CALL                                         !0, 'insert'
         28        SEND_VAL_EX                                              <array>
         29        DO_FCALL                                      0          
   14    30        INIT_METHOD_CALL                                         !0, 'insert'
         31        SEND_VAL_EX                                              <array>
         32        DO_FCALL                                      0          
   15    33        INIT_METHOD_CALL                                         !0, 'insert'
         34        SEND_VAL_EX                                              <array>
         35        DO_FCALL                                      0          
   16    36        INIT_METHOD_CALL                                         !0, 'insert'
         37        SEND_VAL_EX                                              <array>
         38        DO_FCALL                                      0          
   17    39        INIT_METHOD_CALL                                         !0, 'insert'
         40        SEND_VAL_EX                                              <array>
         41        DO_FCALL                                      0          
   18    42        INIT_METHOD_CALL                                         !0, 'insert'
         43        SEND_VAL_EX                                              <array>
         44        DO_FCALL                                      0          
   19    45      > FE_RESET_R                                       $26     !0, ->53
         46    > > FE_FETCH_R                                               $26, !2, ->53
   20    47    >   INIT_FCALL                                               'var_dump'
         48        SEND_VAR                                                 !2
         49        DO_ICALL                                         $27     
         50        CONCAT                                           ~28     $27, '%0A'
         51        ECHO                                                     ~28
   19    52      > JMP                                                      ->46
         53    >   FE_FREE                                                  $26
   21    54      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1400 KiB | 15 Q