3v4l.org

run code in 500+ PHP versions simultaneously
<?php function myfunc(){ return ["status" => true]; } if ( myfunc()['status'] ){ echo "the status is true"; }
Finding entry points
Branch analysis from position: 0
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
filename:       /in/slf3d
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'myfunc'
          1        DO_FCALL                                          0  $0      
          2        FETCH_DIM_R                                          ~1      $0, 'status'
          3      > JMPZ                                                         ~1, ->5
    8     4    >   ECHO                                                         'the+status+is+true'
    9     5    > > RETURN                                                       1

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

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.02 ms | 2164 KiB | 14 Q