3v4l.org

run code in 500+ PHP versions simultaneously
<?php $injectionSequenceName='Affaires_THC_260331_INJE_I'; $injectionSequenceName2='THC_INJE_S'; $rawIdentifier = \explode('_', $injectionSequenceName, 4)[3] ?? ''; $rawIdentifier = \str_replace('_', '', $rawIdentifier); $rawIdentifier2 = \explode('_', $injectionSequenceName2, 4)[3] ?? ''; $rawIdentifier2 = \str_replace('_', '', $rawIdentifier2); echo($rawIdentifier); echo($rawIdentifier2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vMcnB
function name:  (null)
number of ops:  35
compiled vars:  !0 = $injectionSequenceName, !1 = $injectionSequenceName2, !2 = $rawIdentifier, !3 = $rawIdentifier2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Affaires_THC_260331_INJE_I'
    3     1        ASSIGN                                                   !1, 'THC_INJE_S'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '_'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 4
          6        DO_ICALL                                         $6      
          7        FETCH_DIM_IS                                     ~7      $6, 3
          8        COALESCE                                         ~8      ~7
          9        QM_ASSIGN                                        ~8      ''
         10        ASSIGN                                                   !2, ~8
    6    11        INIT_FCALL                                               'str_replace'
         12        SEND_VAL                                                 '_'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !2, $10
    8    17        INIT_FCALL                                               'explode'
         18        SEND_VAL                                                 '_'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 4
         21        DO_ICALL                                         $12     
         22        FETCH_DIM_IS                                     ~13     $12, 3
         23        COALESCE                                         ~14     ~13
         24        QM_ASSIGN                                        ~14     ''
         25        ASSIGN                                                   !3, ~14
    9    26        INIT_FCALL                                               'str_replace'
         27        SEND_VAL                                                 '_'
         28        SEND_VAL                                                 ''
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                         $16     
         31        ASSIGN                                                   !3, $16
   10    32        ECHO                                                     !2
   11    33        ECHO                                                     !3
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.83 ms | 1312 KiB | 15 Q