3v4l.org

run code in 300+ PHP versions simultaneously
<?php function condition() { echo 'Hello'; return false; } $condition = condition(); 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 = 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/AEZUI
function name:  (null)
number of ops:  13
compiled vars:  !0 = $condition
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'condition'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    8     3        INIT_FCALL                                               'define'
          4        SEND_VAL                                                 'some_condition'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
   10     7        FETCH_CONSTANT                                   ~4      'some_condition'
          8      > JMPZ                                                     ~4, ->11
   11     9    >   ECHO                                                     'Hello'
         10      > JMP                                                      ->12
   13    11    >   ECHO                                                     '+world'
         12    > > RETURN                                                   1

Function condition:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEZUI
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:
149.42 ms | 1397 KiB | 16 Q