3v4l.org

run code in 300+ PHP versions simultaneously
<?php $field = 'aut.date AS "date_inscription"'; if(strpos($field, 'AS')!=-1) { $_aliasSuffix = explode('AS', $_field); $aliasSuffix = str_replace(array('"', "'"), '', trim($_aliasSuffix[1])); } echo "aliasSuffix=$aliasSuffix";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/2F5pa
function name:  (null)
number of ops:  26
compiled vars:  !0 = $field, !1 = $_aliasSuffix, !2 = $_field, !3 = $aliasSuffix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'aut.date+AS+%22date_inscription%22'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'AS'
          4        DO_ICALL                                         $5      
          5        IS_NOT_EQUAL                                             $5, -1
          6      > JMPZ                                                     ~6, ->22
    4     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 'AS'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    5    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 <array>
         14        SEND_VAL                                                 ''
         15        INIT_FCALL                                               'trim'
         16        FETCH_DIM_R                                      ~9      !1, 1
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        DO_ICALL                                         $11     
         21        ASSIGN                                                   !3, $11
    8    22    >   NOP                                                      
         23        FAST_CONCAT                                      ~13     'aliasSuffix%3D', !3
         24        ECHO                                                     ~13
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1395 KiB | 21 Q