3v4l.org

run code in 300+ PHP versions simultaneously
<?php function condition() { echo 'Hello'; return false; } define('some_condition', condition()); if (some_condition) echo 'Hello'; else echo ' world';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Goii4
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'some_condition'
          2        INIT_FCALL                                               'condition'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    9     6        FETCH_CONSTANT                                   ~2      'some_condition'
          7      > JMPZ                                                     ~2, ->10
   10     8    >   ECHO                                                     'Hello'
          9      > JMP                                                      ->11
   12    10    >   ECHO                                                     '+world'
         11    > > RETURN                                                   1

Function condition:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Goii4
function name:  condition
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Hello'
    4     1      > RETURN                                                   <false>
    5     2*     > RETURN                                                   null

End of function condition

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1397 KiB | 16 Q