3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.57 ms | 1394 KiB | 15 Q