3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); if(!defined('BAR')) define('BAR', 'bar'); !defined('FOO') && define('FOO', 'foo'); echo BAR; echo FOO;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/iuIrm
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DEFINED                                          ~0      'BAR'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->7
          3    >   INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'BAR'
          5        SEND_VAL                                                 'bar'
          6        DO_ICALL                                                 
    4     7    >   DEFINED                                          ~3      'FOO'
          8        BOOL_NOT                                         ~4      ~3
          9      > JMPZ_EX                                          ~4      ~4, ->15
         10    >   INIT_FCALL                                               'define'
         11        SEND_VAL                                                 'FOO'
         12        SEND_VAL                                                 'foo'
         13        DO_ICALL                                         $5      
         14        BOOL                                             ~4      $5
    6    15    >   FETCH_CONSTANT                                   ~6      'BAR'
         16        ECHO                                                     ~6
    7    17        FETCH_CONSTANT                                   ~7      'FOO'
         18        ECHO                                                     ~7
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.83 ms | 999 KiB | 14 Q