3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UserController { public $data; } $userControllerObject = new UserController; $exludedAction = [UserController::class => [ "login", "register" ] ]; $type = get_class($userControllerObject); $cl = array_key_exists($type, $exludedAction); var_dump($cl);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ed9ls
function name:  (null)
number of ops:  12
compiled vars:  !0 = $userControllerObject, !1 = $exludedAction, !2 = $type, !3 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $4      'UserController'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    9     3        ASSIGN                                                   !1, <array>
   15     4        GET_CLASS                                        ~8      !0
          5        ASSIGN                                                   !2, ~8
   16     6        ARRAY_KEY_EXISTS                                 ~10     !2, !1
          7        ASSIGN                                                   !3, ~10
   18     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class UserController: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.07 ms | 1409 KiB | 15 Q