3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test($view_mode) { if (trim($view_mode) === '') { $view_mode = 'ctools'; } } test(NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l0o8U
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'test'
          1        SEND_VAL                                                     null
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/l0o8U
function name:  test
number of ops:  6
compiled vars:  !0 = $view_mode
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    5     1        FRAMELESS_ICALL_1                trim                ~1      !0
          2        IS_IDENTICAL                                                 ~1, ''
          3      > JMPZ                                                         ~2, ->5
    6     4    >   ASSIGN                                                       !0, 'ctools'
    8     5    > > RETURN                                                       null

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.74 ms | 1977 KiB | 14 Q