3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heap = new SplMinHeap; $heap->insert([1, 1, 0]); $heap->insert([2, 2, 1]); $heap->insert([1, 2, 1]); $heap->insert([2, 1, 3]); foreach ($heap as $item) { echo implode(' ', $item) . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/nhBOb
function name:  (null)
number of ops:  26
compiled vars:  !0 = $heap, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SplMinHeap'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'insert'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
    4     6        INIT_METHOD_CALL                                         !0, 'insert'
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
    5     9        INIT_METHOD_CALL                                         !0, 'insert'
         10        SEND_VAL_EX                                              <array>
         11        DO_FCALL                                      0          
    6    12        INIT_METHOD_CALL                                         !0, 'insert'
         13        SEND_VAL_EX                                              <array>
         14        DO_FCALL                                      0          
    7    15      > FE_RESET_R                                       $9      !0, ->24
         16    > > FE_FETCH_R                                               $9, !1, ->24
    8    17    >   INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '+'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $10     
         21        CONCAT                                           ~11     $10, '%0A'
         22        ECHO                                                     ~11
    7    23      > JMP                                                      ->16
         24    >   FE_FREE                                                  $9
    9    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.96 ms | 1395 KiB | 15 Q