3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_reverse(range(1, 42)); foreach ($array as &$value) { // do nothing; } $array = array_reverse($array); foreach ($array as $value) { // do nothing; } print reset($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 126) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/odmZU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_reverse'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 42
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    5     8      > FE_RESET_RW                                      $5      !0, ->11
          9    > > FE_FETCH_RW                                              $5, !1, ->11
         10    > > JMP                                                      ->9
         11    >   FE_FREE                                                  $5
    9    12        INIT_FCALL                                               'array_reverse'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !0, $6
   11    16      > FE_RESET_R                                       $8      !0, ->19
         17    > > FE_FETCH_R                                               $8, !1, ->19
         18    > > JMP                                                      ->17
         19    >   FE_FREE                                                  $8
   15    20        INIT_FCALL                                               'reset'
         21        SEND_REF                                                 !0
         22        DO_ICALL                                         $9      
         23        ECHO                                                     $9
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.19 ms | 1005 KiB | 16 Q