3v4l.org

run code in 300+ PHP versions simultaneously
<?php class k { public $values = array('coke', 'fanta', 'sprite'); function get() { return $this->values; } function print() { var_export($this->values); } } $obj = new k(); $tmp = $obj->get(); $item = array_pop($tmp); var_export($tmp); var_export($item); $obj->print();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YENo4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj, !1 = $tmp, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $3      'k'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   17     3        INIT_METHOD_CALL                                         !0, 'get'
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !1, $6
   19     6        INIT_FCALL                                               'array_pop'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   21    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   22    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
   23    16        INIT_METHOD_CALL                                         !0, 'print'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class k:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YENo4
function name:  get
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      'values'
          1      > RETURN                                                   ~0
    9     2*     > RETURN                                                   null

End of function get

Function print:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YENo4
function name:  print
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_export'
          1        FETCH_OBJ_R                                      ~0      'values'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   13     4      > RETURN                                                   null

End of function print

End of class k.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.91 ms | 1401 KiB | 17 Q