3v4l.org

run code in 300+ PHP versions simultaneously
<?php print('$a = array(0, "a");' + "\n"); $a = array(0,"a"); sort($a); print('sort($a);'); var_dump($a); sort($a); print('sort($a);'); var_dump($a); sort($a); print('sort($a);'); var_dump($a); sort($a); print('sort($a);'); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8GNVF
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ADD                                              ~1      '%24a+%3D+array%280%2C+%22a%22%29%3B', '%0A'
          1        ECHO                                                     ~1
    3     2        ASSIGN                                                   !0, <array>
    4     3        INIT_FCALL                                               'sort'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    5     6        ECHO                                                     'sort%28%24a%29%3B'
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'sort'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    8    13        ECHO                                                     'sort%28%24a%29%3B'
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'sort'
         18        SEND_REF                                                 !0
         19        DO_ICALL                                                 
   11    20        ECHO                                                     'sort%28%24a%29%3B'
   12    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   13    24        INIT_FCALL                                               'sort'
         25        SEND_REF                                                 !0
         26        DO_ICALL                                                 
   14    27        ECHO                                                     'sort%28%24a%29%3B'
   15    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.82 ms | 1395 KiB | 17 Q