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
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E621f
function name:  (null)
number of ops:  13
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      > JMPZ                                                     $4, ->10
          8    >   QM_ASSIGN                                        ~5      1
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~5      -1
         11    >   FREE                                                     ~5
         12      > RETURN                                                   1

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E621f
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:
150.09 ms | 1397 KiB | 14 Q