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(2, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eEZYn
function name:  (null)
number of ops:  10
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                                                 2
          7        SEND_VAL                                                 <true>
          8        DO_FCALL                                      0          
          9      > 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/eEZYn
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:
191.66 ms | 1402 KiB | 18 Q