3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; $o = new stdclass(); $o->id = 11591; $o->title = 'abc'; $arr[3] = $o; $o = new stdclass(); $o->id = 11592; $o->title = 'xyz'; $arr[2] = $o; $o = new stdclass(); $o->id = 11589; $o->title = 'abg'; $arr[0] = $o; $o = new stdclass(); $o->id = 11590; $o->title = 'asw'; $arr[1] = $o; ksort($arr); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hkLCc
function name:  (null)
number of ops:  44
compiled vars:  !0 = $arr, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $3      'stdclass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    5     4        ASSIGN_OBJ                                               !1, 'id'
          5        OP_DATA                                                  11591
    6     6        ASSIGN_OBJ                                               !1, 'title'
          7        OP_DATA                                                  'abc'
    7     8        ASSIGN_DIM                                               !0, 3
          9        OP_DATA                                                  !1
    8    10        NEW                                              $9      'stdclass'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $9
    9    13        ASSIGN_OBJ                                               !1, 'id'
         14        OP_DATA                                                  11592
   10    15        ASSIGN_OBJ                                               !1, 'title'
         16        OP_DATA                                                  'xyz'
   11    17        ASSIGN_DIM                                               !0, 2
         18        OP_DATA                                                  !1
   12    19        NEW                                              $15     'stdclass'
         20        DO_FCALL                                      0          
         21        ASSIGN                                                   !1, $15
   13    22        ASSIGN_OBJ                                               !1, 'id'
         23        OP_DATA                                                  11589
   14    24        ASSIGN_OBJ                                               !1, 'title'
         25        OP_DATA                                                  'abg'
   15    26        ASSIGN_DIM                                               !0, 0
         27        OP_DATA                                                  !1
   16    28        NEW                                              $21     'stdclass'
         29        DO_FCALL                                      0          
         30        ASSIGN                                                   !1, $21
   17    31        ASSIGN_OBJ                                               !1, 'id'
         32        OP_DATA                                                  11590
   18    33        ASSIGN_OBJ                                               !1, 'title'
         34        OP_DATA                                                  'asw'
   19    35        ASSIGN_DIM                                               !0, 1
         36        OP_DATA                                                  !1
   21    37        INIT_FCALL                                               'ksort'
         38        SEND_REF                                                 !0
         39        DO_ICALL                                                 
   22    40        INIT_FCALL                                               'print_r'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.61 ms | 1000 KiB | 15 Q