3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Const_Holder { const FOO = 'foo'; const BAR = 'bar'; } function test($target = Const_Holder::FOO) { echo $target; } echo test() . "<br/>\n"; echo test(Const_Holder::BAR) . "<br/>\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ll67b
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      $0, '%3Cbr%2F%3E%0A'
          3        ECHO                                                     ~1
   14     4        INIT_FCALL                                               'test'
          5        SEND_VAL                                                 'bar'
          6        DO_FCALL                                      0  $2      
          7        CONCAT                                           ~3      $2, '%3Cbr%2F%3E%0A'
          8        ECHO                                                     ~3
          9      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ll67b
function name:  test
number of ops:  3
compiled vars:  !0 = $target
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      <const ast>
   10     1        ECHO                                                     !0
   11     2      > RETURN                                                   null

End of function test

Class Const_Holder: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.59 ms | 1397 KiB | 15 Q