3v4l.org

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

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

End of function __construct

Function listy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DhXJU
function name:  listy
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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
   12     8        ECHO                                                     !0
          9        ECHO                                                     '%0A'
   13    10        ECHO                                                     !1
         11        ECHO                                                     '%0A'
   14    12        ECHO                                                     !2
         13        ECHO                                                     '%0A'
   15    14      > RETURN                                                   null

End of function listy

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.21 ms | 1396 KiB | 15 Q