3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getAr(){ return array(); }; $res = getAr(); var_dump(empty($res)); var_dump(empty(getAr()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XYHBl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'getar'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    8     3        INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_CV                                 ~3      !0
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'getar'
          9        DO_FCALL                                      0  $5      
         10        BOOL_NOT                                         ~6      $5
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function getar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.3 ms | 1397 KiB | 17 Q