3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileNow = "00123"; $counter = 0; while ($fileNow[0] == 0) { $fileNow = substr($fileNow, 1); var_dump('loop iteration: '.(++$counter).', value of $fileNow:', $fileNow); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
filename:       /in/Ob5h5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fileNow, !1 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00123'
    4     1        ASSIGN                                                   !1, 0
    5     2      > JMP                                                      ->15
    6     3    >   INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    7     8        INIT_FCALL                                               'var_dump'
          9        PRE_INC                                          ~6      !1
         10        CONCAT                                           ~7      'loop+iteration%3A+', ~6
         11        CONCAT                                           ~8      ~7, '%2C+value+of+%24fileNow%3A'
         12        SEND_VAL                                                 ~8
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    5    15    >   FETCH_DIM_R                                      ~10     !0, 0
         16        IS_EQUAL                                                 ~10, 0
         17      > JMPNZ                                                    ~11, ->3
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1395 KiB | 17 Q