3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.24 ms | 1394 KiB | 17 Q