3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.47 ms | 1394 KiB | 15 Q