3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 37; for ($i = 0;$i <= 37;$i++) { eval('$hex = "\$i";'); var_dump($hex); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/GJHY6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $i, !1 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 37
    3     1        ASSIGN                                                   !0, 0
          2      > JMP                                                      ->8
    4     3    >   INCLUDE_OR_EVAL                                          '%24hex+%3D+%22%5C%24i%22%3B', EVAL
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    3     7        PRE_INC                                                  !0
          8    >   IS_SMALLER_OR_EQUAL                                      !0, 37
          9      > JMPNZ                                                    ~7, ->3
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.58 ms | 1385 KiB | 15 Q