3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SplQueue(); $a->enqueue('a'); $a->enqueue('b'); $a->enqueue('c'); while($a->valid()) { echo $a->current().PHP_EOL; $a->next(); } $a->rewind(); while($a->valid()) { echo $a->current().PHP_EOL; $a->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 25
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 25
Branch analysis from position: 34
Branch analysis from position: 25
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
Branch analysis from position: 13
filename:       /in/Kgi32
function name:  (null)
number of ops:  35
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplQueue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'enqueue'
          4        SEND_VAL_EX                                              'a'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'enqueue'
          7        SEND_VAL_EX                                              'b'
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !0, 'enqueue'
         10        SEND_VAL_EX                                              'c'
         11        DO_FCALL                                      0          
    8    12      > JMP                                                      ->19
    9    13    >   INIT_METHOD_CALL                                         !0, 'current'
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      $7, '%0A'
         16        ECHO                                                     ~8
   10    17        INIT_METHOD_CALL                                         !0, 'next'
         18        DO_FCALL                                      0          
    8    19    >   INIT_METHOD_CALL                                         !0, 'valid'
         20        DO_FCALL                                      0  $10     
         21      > JMPNZ                                                    $10, ->13
   12    22    >   INIT_METHOD_CALL                                         !0, 'rewind'
         23        DO_FCALL                                      0          
   14    24      > JMP                                                      ->31
   15    25    >   INIT_METHOD_CALL                                         !0, 'current'
         26        DO_FCALL                                      0  $12     
         27        CONCAT                                           ~13     $12, '%0A'
         28        ECHO                                                     ~13
   16    29        INIT_METHOD_CALL                                         !0, 'next'
         30        DO_FCALL                                      0          
   14    31    >   INIT_METHOD_CALL                                         !0, 'valid'
         32        DO_FCALL                                      0  $15     
         33      > JMPNZ                                                    $15, ->25
   17    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.62 ms | 1399 KiB | 13 Q