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/cplYg
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%24a+%3D+array%280%2C+%22a%22%29%3B%0A'
    3     1        ASSIGN                                                   !0, <array>
    4     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    5     5        ECHO                                                     'sort%28%24a%29%3B'
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'sort'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
    8    12        ECHO                                                     'sort%28%24a%29%3B'
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'sort'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                                 
   11    19        ECHO                                                     'sort%28%24a%29%3B'
   12    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   13    23        INIT_FCALL                                               'sort'
         24        SEND_REF                                                 !0
         25        DO_ICALL                                                 
   14    26        ECHO                                                     'sort%28%24a%29%3B'
   15    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.61 ms | 1387 KiB | 17 Q