3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined('Z') or define('Z', 'foo'); echo Z;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/O1W28
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DEFINED                                          ~0      'Z'
          1      > JMPNZ_EX                                         ~0      ~0, ->7
          2    >   INIT_FCALL                                               'define'
          3        SEND_VAL                                                 'Z'
          4        SEND_VAL                                                 'foo'
          5        DO_ICALL                                         $1      
          6        BOOL                                             ~0      $1
    3     7    >   FETCH_CONSTANT                                   ~2      'Z'
          8        ECHO                                                     ~2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.04 ms | 1394 KiB | 15 Q