3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<derp>"; $words = array(); $words[] = &$string; $derp = array(); $derp[] = &$string; $words[0] = substr($string, 1); $words[0] = substr($string, 0, -1); $sort($derp); var_dump($derp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G4V4E
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string, !1 = $words, !2 = $derp, !3 = $sort
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                                      $6      !1
          3        ASSIGN_REF                                               $6, !0
    6     4        ASSIGN                                                   !2, <array>
    7     5        FETCH_DIM_W                                      $9      !2
          6        ASSIGN_REF                                               $9, !0
    9     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $12     
         11        ASSIGN_DIM                                               !1, 0
         12        OP_DATA                                                  $12
   10    13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 -1
         17        DO_ICALL                                         $14     
         18        ASSIGN_DIM                                               !1, 0
         19        OP_DATA                                                  $14
   12    20        INIT_DYNAMIC_CALL                                        !3
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0          
   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:
160.8 ms | 1395 KiB | 17 Q