3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.15 ms | 1396 KiB | 17 Q