3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<derp>"; $words = array(); $words[] = &$string; $derp = array(); $derp[] = &$string; sort($derp); $words[0] = substr($string, 1); $words[0] = substr($string, 0, -1); var_dump($derp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KiXj0
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $words, !2 = $derp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cderp%3E'
    4     1        ASSIGN                                                   !1, <array>
    5     2        FETCH_DIM_W                                      $5      !1
          3        ASSIGN_REF                                               $5, !0
    6     4        ASSIGN                                                   !2, <array>
    7     5        FETCH_DIM_W                                      $8      !2
          6        ASSIGN_REF                                               $8, !0
    9     7        INIT_FCALL                                               'sort'
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
   10    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $12     
         14        ASSIGN_DIM                                               !1, 0
         15        OP_DATA                                                  $12
   11    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 -1
         20        DO_ICALL                                         $14     
         21        ASSIGN_DIM                                               !1, 0
         22        OP_DATA                                                  $14
   14    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.42 ms | 1399 KiB | 19 Q