3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Internally, PHP has a thing called an "array pointer" which points to the "current" element of an array for purposes of iteration. In a sane world */ $a = array(); $b = array(false, true, true, "Galamb vagyok."); if(reset($a) === reset($b)) { echo 'Yes.'; } else { echo 'No.'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9BR7L
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   14     2        INIT_FCALL                                               'reset'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $4      
          5        INIT_FCALL                                               'reset'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                         $5      
          8        IS_IDENTICAL                                             $4, $5
          9      > JMPZ                                                     ~6, ->12
   16    10    >   ECHO                                                     'Yes.'
         11      > JMP                                                      ->13
   21    12    >   ECHO                                                     'No.'
   22    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.05 ms | 1394 KiB | 15 Q