3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new ReflectionMethod('DateTimeImmutable', '__construct'))->getParameters()[1]->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Wc78
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $0      'ReflectionMethod'
          1        SEND_VAL_EX                                              'DateTimeImmutable'
          2        SEND_VAL_EX                                              '__construct'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'getParameters'
          5        DO_FCALL                                      0  $2      
          6        FETCH_DIM_R                                      ~3      $2, 1
          7        INIT_METHOD_CALL                                         ~3, 'getName'
          8        DO_FCALL                                      0  $4      
          9        ECHO                                                     $4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.73 ms | 1393 KiB | 13 Q