3v4l.org

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

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

End of function start

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.96 ms | 1385 KiB | 13 Q