3v4l.org

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

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

End of function __construct

End of class Sorter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.89 ms | 998 KiB | 15 Q