3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.43 ms | 1394 KiB | 15 Q