3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo{ public function __unset($name) { trigger_error($name, E_USER_WARNING); } } $f = new Foo(); $f->__unset("direct"); @$f->__unset("direct suppressed"); unset($f->{"unset"}); //@unset($f->{"unset suppressed 1"}); - not allowed //unset(@$f->{"unset suppressed 2"}); - not allowed
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/idvWY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        INIT_METHOD_CALL                                             !0, '__unset'
          4        SEND_VAL_EX                                                  'direct'
          5        DO_FCALL                                          0          
   12     6        BEGIN_SILENCE                                        ~5      
          7        INIT_METHOD_CALL                                             !0, '__unset'
          8        SEND_VAL_EX                                                  'direct+suppressed'
          9        DO_FCALL                                          0          
         10        END_SILENCE                                                  ~5
   14    11        UNSET_OBJ                                                    !0, 'unset'
   16    12      > RETURN                                                       1

Class Foo:
Function __unset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/idvWY
function name:  __unset
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1        INIT_FCALL                                                   'trigger_error'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     512
          4        DO_ICALL                                                     
    6     5      > RETURN                                                       null

End of function __unset

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.46 ms | 2261 KiB | 13 Q