3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test(){ if(true){ if(false){ return 'Yes'; } if(false){ return 'Sure'; } return 'Something weird happened'; }else{ return 'No'; } } echo test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NUWT
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                                   'test'
          1        DO_FCALL                                          0  $0      
          2        ECHO                                                         $0
          3      > RETURN                                                       1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 7
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NUWT
function name:  test
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > JMPZ                                                         <true>, ->7
    5     1    > > JMPZ                                                         <false>, ->3
    6     2    > > RETURN                                                       'Yes'
    8     3    > > JMPZ                                                         <false>, ->5
    9     4    > > RETURN                                                       'Sure'
   12     5    > > RETURN                                                       'Something+weird+happened'
    4     6*       JMP                                                          ->8
   14     7    > > RETURN                                                       'No'
   16     8*     > RETURN                                                       null

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.54 ms | 1882 KiB | 14 Q