3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = 'Ca2SO3'; $po = strpos($A, 'Ca'); echo $A[$pos + 3];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OsIe8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $A, !1 = $po, !2 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Ca2SO3'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'Ca'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        ADD                                              ~6      !2, 3
          7        FETCH_DIM_R                                      ~7      !0, ~6
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.21 ms | 1393 KiB | 15 Q