3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Course { protected array $fillable = [ 'names', 'objectives', 'requirements', // ... ]; } var_dump((new \ReflectionClass(Course::class))->getDefaultProperties()['fillable']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FuCZg
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'ReflectionClass'
          2        SEND_VAL_EX                                              'Course'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'getDefaultProperties'
          5        DO_FCALL                                      0  $2      
          6        FETCH_DIM_R                                      ~3      $2, 'fillable'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class Course: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.26 ms | 1008 KiB | 14 Q