3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_STRICT); function optionalParam($x = 1, $y = 5, $z) { if ((!$z > 0)) { $z = 1; } for($count = $x; $count < $y; $count+= $z) { echo "#"; } } optionalParam(2,4,2); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h18ND
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 2048
          2        DO_ICALL                                                 
   14     3        INIT_FCALL                                               'optionalparam'
          4        SEND_VAL                                                 2
          5        SEND_VAL                                                 4
          6        SEND_VAL                                                 2
          7        DO_FCALL                                      0          
   15     8      > RETURN                                                   1

Function optionalparam:
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 = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 9
Branch analysis from position: 13
Branch analysis from position: 9
Branch analysis from position: 7
filename:       /in/h18ND
function name:  optionalParam
number of ops:  14
compiled vars:  !0 = $x, !1 = $y, !2 = $z, !3 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      1
          1        RECV_INIT                                        !1      5
          2        RECV                                             !2      
    5     3        BOOL_NOT                                         ~4      !2
          4        IS_SMALLER                                               0, ~4
          5      > JMPZ                                                     ~5, ->7
    7     6    >   ASSIGN                                                   !2, 1
    9     7    >   ASSIGN                                                   !3, !0
          8      > JMP                                                      ->11
   11     9    >   ECHO                                                     '%23'
    9    10        ASSIGN_OP                                     1          !3, !2
         11    >   IS_SMALLER                                               !3, !1
         12      > JMPNZ                                                    ~9, ->9
   13    13    > > RETURN                                                   null

End of function optionalparam

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.01 ms | 1399 KiB | 16 Q