3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { private array $data = [42, 23]; public function sort() { sort($this->data); print_r($this->data); } } $a = new A(); $a->sort();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sOBca
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $1      'A'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   11     3        INIT_METHOD_CALL                                             !0, 'sort'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class A:
Function sort:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sOBca
function name:  sort
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'sort'
          1        FETCH_OBJ_W                                          $0      'data'
          2        SEND_REF                                                     $0
          3        DO_ICALL                                                     
    7     4        INIT_FCALL                                                   'print_r'
          5        FETCH_OBJ_R                                          ~2      'data'
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
    8     8      > RETURN                                                       null

End of function sort

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.57 ms | 2182 KiB | 15 Q