3v4l.org

run code in 300+ PHP versions simultaneously
<?php define ('if', 'while'); $i = 0; if ($i == 0) { echo "hi\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/OvGaS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'if'
          2        SEND_VAL                                                 'while'
          3        DO_ICALL                                                 
    3     4        ASSIGN                                                   !0, 0
    4     5        IS_EQUAL                                                 !0, 0
          6      > JMPZ                                                     ~3, ->8
    5     7    >   ECHO                                                     'hi%0A'
    6     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.02 ms | 1394 KiB | 15 Q