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]); $heap->insert([1,1,1]); $heap->insert([1, 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 = 22, Position 2 = 30
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/E6drL
function name:  (null)
number of ops:  32
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        INIT_METHOD_CALL                                         !0, 'insert'
         16        SEND_VAL_EX                                              <array>
         17        DO_FCALL                                      0          
    8    18        INIT_METHOD_CALL                                         !0, 'insert'
         19        SEND_VAL_EX                                              <array>
         20        DO_FCALL                                      0          
    9    21      > FE_RESET_R                                       $11     !0, ->30
         22    > > FE_FETCH_R                                               $11, !1, ->30
   10    23    >   INIT_FCALL                                               'implode'
         24        SEND_VAL                                                 '+'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $12     
         27        CONCAT                                           ~13     $12, '%0A'
         28        ECHO                                                     ~13
    9    29      > JMP                                                      ->22
         30    >   FE_FREE                                                  $11
   11    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1396 KiB | 15 Q