3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { var $c = null; function funcall () { return array(2,3); } } $o = new Test; // Chain assignment list ($a,$b) = $o->c = $o->funcall(); print "XXX"; print $a; print "YYY";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLHvD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $o, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   15     3        INIT_METHOD_CALL                                         !0, 'funcall'
          4        DO_FCALL                                      0  $7      
          5        ASSIGN_OBJ                                       ~6      !0, 'c'
          6        OP_DATA                                                  $7
          7        FETCH_LIST_R                                     $8      ~6, 0
          8        ASSIGN                                                   !1, $8
          9        FETCH_LIST_R                                     $10     ~6, 1
         10        ASSIGN                                                   !2, $10
         11        FREE                                                     ~6
   16    12        ECHO                                                     'XXX'
   17    13        ECHO                                                     !1
   18    14        ECHO                                                     'YYY'
         15      > RETURN                                                   1

Class Test:
Function funcall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLHvD
function name:  funcall
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   <array>
    9     1*     > RETURN                                                   null

End of function funcall

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.77 ms | 1393 KiB | 13 Q