3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heap = new SplMinHeap; $heap->insert([1, 1]); $heap->insert([2, 2]); $heap->insert([1, 2]); $heap->insert([2, 1]); 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 = 18
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/TDqGP
function name:  (null)
number of ops:  20
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, ->18
         16    > > FE_FETCH_R                                               $9, !1, ->18
         17    > > JMP                                                      ->16
         18    >   FE_FREE                                                  $9
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.55 ms | 1393 KiB | 13 Q