3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new ReflectionClass('ArrayObject'); $c = $f->getConstructor(); $params = $c->getParameters(); $param = $params[0]; var_dump($param->isOptional());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gAh5F
function name:  (null)
number of ops:  18
compiled vars:  !0 = $f, !1 = $c, !2 = $params, !3 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'ReflectionClass'
          1        SEND_VAL_EX                                              'ArrayObject'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    5     4        INIT_METHOD_CALL                                         !0, 'getConstructor'
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !1, $7
    7     7        INIT_METHOD_CALL                                         !1, 'getParameters'
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !2, $9
    9    10        FETCH_DIM_R                                      ~11     !2, 0
         11        ASSIGN                                                   !3, ~11
   11    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !3, 'isOptional'
         14        DO_FCALL                                      0  $13     
         15        SEND_VAR                                                 $13
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.17 ms | 1394 KiB | 15 Q