3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo*'; $i = strpos($foo, '*'); $l = strlen($foo)- 2; print_r(get_defined_vars());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tEvl0
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $i, !2 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo%2A'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2A'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        STRLEN                                           ~6      !0
          7        SUB                                              ~7      ~6, 2
          8        ASSIGN                                                   !2, ~7
    7     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'get_defined_vars'
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.27 ms | 1394 KiB | 19 Q