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/5kIPA
function name:  (null)
number of ops:  16
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        BOOL_NOT                                         ~4      ~3
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'getar'
         10        DO_FCALL                                      0  $6      
         11        BOOL_NOT                                         ~7      $6
         12        BOOL_NOT                                         ~8      ~7
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

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