3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Attr($a1, $a2) { var_dump($a1, $a2); } [@Attr("foo", "bar")]; const FOO = 'bar';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0LMk1
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BEGIN_SILENCE                                    ~0      
          1        INIT_FCALL                                               'attr'
          2        SEND_VAL                                                 'foo'
          3        SEND_VAL                                                 'bar'
          4        DO_FCALL                                      0  $1      
          5        END_SILENCE                                              ~0
          6        INIT_ARRAY                                       ~2      $1
          7        FREE                                                     ~2
    8     8        DECLARE_CONST                                            'FOO', 'bar'
          9      > RETURN                                                   1

Function attr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0LMk1
function name:  Attr
number of ops:  7
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function attr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.61 ms | 1401 KiB | 16 Q