3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'PHP5'; $s = 'Vive $var'; $s = substr($s, -3); echo $$s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GiNHC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'PHP5'
    3     1        ASSIGN                                                   !1, 'Vive+%24var'
    4     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 -3
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        FETCH_R                      local               ~6      !1
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.01 ms | 1394 KiB | 15 Q