3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'prefix.column alias'; $pos = strpos ($str, '.'); $posr = strrpos ($str, ' '); echo substr ($str, $pos + 1, $posr - $pos);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sLB9k
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $pos, !2 = $posr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'prefix.column+alias'
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'strrpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '+'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    8    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        ADD                                              ~8      !1, 1
         14        SEND_VAL                                                 ~8
         15        SUB                                              ~9      !2, !1
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                         $10     
         18        ECHO                                                     $10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.47 ms | 1394 KiB | 19 Q