3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Emp { public function check(&$var) { return empty($var); } } $empty = new Emp; var_dump($empty->check($foo['bar']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/POQMl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $empty, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Emp'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'check'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_DIM_FUNC_ARG                               $5      !1, 'bar'
          7        SEND_FUNC_ARG                                            $5
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Emp:
Function check:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/POQMl
function name:  check
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ISSET_ISEMPTY_CV                                 ~1      !0
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function check

End of class Emp.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.41 ms | 1395 KiB | 15 Q