3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(int $i = 4, bool $addon = false) { var_dump($i); if ($addon) { echo 'Pridavek' . PHP_EOL; } } a(); a(5); a('7'); a(2, true); a(9, 4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0IpJ
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
   12     2        INIT_FCALL                                               'a'
          3        SEND_VAL                                                 5
          4        DO_FCALL                                      0          
   13     5        INIT_FCALL                                               'a'
          6        SEND_VAL                                                 '7'
          7        DO_FCALL                                      0          
   14     8        INIT_FCALL                                               'a'
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 <true>
         11        DO_FCALL                                      0          
   15    12        INIT_FCALL                                               'a'
         13        SEND_VAL                                                 9
         14        SEND_VAL                                                 4
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/a0IpJ
function name:  a
number of ops:  8
compiled vars:  !0 = $i, !1 = $addon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      4
          1        RECV_INIT                                        !1      <false>
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5      > JMPZ                                                     !1, ->7
    7     6    >   ECHO                                                     'Pridavek%0A'
    9     7    > > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.16 ms | 1398 KiB | 20 Q