3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $data; function __construct($d){ $this->data = $d; } function list(){ list($a,$b,$c) = $this->data; echo $a,"\n"; echo $b,"\n"; echo $c,"\n"; } } (new Test)->list(array("a","b","c"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9YeoE
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $0      'Test'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'list'
          3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9YeoE
function name:  __construct
number of ops:  4
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'data'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function __construct

Function list:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9YeoE
function name:  list
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~3      'data'
          1        FETCH_LIST_R                                     $4      ~3, 0
          2        ASSIGN                                                   !0, $4
          3        FETCH_LIST_R                                     $6      ~3, 1
          4        ASSIGN                                                   !1, $6
          5        FETCH_LIST_R                                     $8      ~3, 2
          6        ASSIGN                                                   !2, $8
          7        FREE                                                     ~3
   11     8        ECHO                                                     !0
          9        ECHO                                                     '%0A'
   12    10        ECHO                                                     !1
         11        ECHO                                                     '%0A'
   13    12        ECHO                                                     !2
         13        ECHO                                                     '%0A'
   14    14      > RETURN                                                   null

End of function list

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.5 ms | 1386 KiB | 13 Q