3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.83 ms | 1394 KiB | 15 Q