3v4l.org

run code in 300+ PHP versions simultaneously
<?php $capitalcities['England'] = 'London'; $capitalcities['Wales'] = 'Cardiff'; $capitalcities['Scotland'] = 'Edinburgh'; ksort($capitalcities); var_dump($capitalcities); asort($capitalcities); var_dump($capitalcities); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ffc8N
function name:  (null)
number of ops:  19
compiled vars:  !0 = $capitalcities
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'England'
          1        OP_DATA                                                  'London'
    3     2        ASSIGN_DIM                                               !0, 'Wales'
          3        OP_DATA                                                  'Cardiff'
    4     4        ASSIGN_DIM                                               !0, 'Scotland'
          5        OP_DATA                                                  'Edinburgh'
    5     6        INIT_FCALL                                               'ksort'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'asort'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.31 ms | 1394 KiB | 19 Q