3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array( 'one' => 1, 'two' => 2, 'three' => 3 ); $a2 = $a1; $a3 = $a1; sort($a1); var_dump($a1); ksort($a2); var_dump($a2); asort($a3); var_dump($a3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1ms9G
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, !0
   11     2        ASSIGN                                                   !2, !0
   13     3        INIT_FCALL                                               'sort'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
   15     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   17     9        INIT_FCALL                                               'ksort'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                                 
   19    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   21    15        INIT_FCALL                                               'asort'
         16        SEND_REF                                                 !2
         17        DO_ICALL                                                 
   23    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.21 ms | 1395 KiB | 21 Q