3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Test($xxx = null) { if(isset($xxx)) { echo 'is set<br>'; } else echo 'not set<br>'; } Test(); Test('abcd');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a249A
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
   14     2        INIT_FCALL                                               'test'
          3        SEND_VAL                                                 'abcd'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a249A
function name:  Test
number of ops:  7
compiled vars:  !0 = $xxx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    5     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
    7     3    >   ECHO                                                     'is+set%3Cbr%3E'
          4      > JMP                                                      ->6
    9     5    >   ECHO                                                     'not+set%3Cbr%3E'
   11     6    > > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.67 ms | 1397 KiB | 15 Q