3v4l.org

run code in 300+ PHP versions simultaneously
<?php function c($a = null) {}; $r = new ReflectionParameter('c', 0); $r->isOptional() << 1 - 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VtP6B
function name:  (null)
number of ops:  10
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'ReflectionParameter'
          1        SEND_VAL_EX                                              'c'
          2        SEND_VAL_EX                                              0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    6     5        INIT_METHOD_CALL                                         !0, 'isOptional'
          6        DO_FCALL                                      0  $4      
          7        SL                                               ~5      $4, 0
          8        FREE                                                     ~5
          9      > RETURN                                                   1

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VtP6B
function name:  c
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1      > RETURN                                                   null

End of function c

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.85 ms | 1393 KiB | 13 Q