3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList(); $list->push(1); $list->push(2); foreach($list as $a) { foreach($list as $b) { echo "($a, $b)"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/2PIID
function name:  (null)
number of ops:  24
compiled vars:  !0 = $list, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        INIT_METHOD_CALL                                         !0, 'push'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0          
    6     6        INIT_METHOD_CALL                                         !0, 'push'
          7        SEND_VAL_EX                                              2
          8        DO_FCALL                                      0          
    8     9      > FE_RESET_R                                       $8      !0, ->22
         10    > > FE_FETCH_R                                               $8, !1, ->22
   10    11    > > FE_RESET_R                                       $9      !0, ->20
         12    > > FE_FETCH_R                                               $9, !2, ->20
   12    13    >   ROPE_INIT                                     5  ~11     '%28'
         14        ROPE_ADD                                      1  ~11     ~11, !1
         15        ROPE_ADD                                      2  ~11     ~11, '%2C+'
         16        ROPE_ADD                                      3  ~11     ~11, !2
         17        ROPE_END                                      4  ~10     ~11, '%29'
         18        ECHO                                                     ~10
   10    19      > JMP                                                      ->12
         20    >   FE_FREE                                                  $9
    8    21      > JMP                                                      ->10
         22    >   FE_FREE                                                  $8
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.39 ms | 1394 KiB | 13 Q