3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 1; while ($n < 6){ $sub = 'sub'.(string)$n; print_r($sub); $n = $n+1; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 2
Branch analysis from position: 12
Branch analysis from position: 2
filename:       /in/fmqiU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $n, !1 = $sub
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1      > JMP                                                      ->10
    4     2    >   CAST                                          6  ~3      !0
          3        CONCAT                                           ~4      'sub', ~3
          4        ASSIGN                                                   !1, ~4
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        ADD                                              ~7      !0, 1
          9        ASSIGN                                                   !0, ~7
    3    10    >   IS_SMALLER                                               !0, 6
         11      > JMPNZ                                                    ~9, ->2
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.47 ms | 1394 KiB | 15 Q