3v4l.org

run code in 500+ PHP versions simultaneously
<?php $args = array( // In this case notice is generated anyway. // 'test', 'test:1', 'test:1:2', 'test:1:2:3', ); foreach ($args as $arg) { list($type, $key) = explode(':', $arg, 2); $imploded = $type . ':' . $key; print $imploded !== $arg ? $arg . ' is not equal after explode/concat' : $arg . ' is equal after explode/concat'; print "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 26
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 26
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/QOsGI
function name:  (null)
number of ops:  28
compiled vars:  !0 = $args, !1 = $arg, !2 = $type, !3 = $key, !4 = $imploded
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    9     1      > FE_RESET_R                                           $6      !0, ->26
          2    > > FE_FETCH_R                                                   $6, !1, ->26
   10     3    >   INIT_FCALL                                                   'explode'
          4        SEND_VAL                                                     '%3A'
          5        SEND_VAR                                                     !1
          6        SEND_VAL                                                     2
          7        DO_ICALL                                             $7      
          8        FETCH_LIST_R                                         $8      $7, 0
          9        ASSIGN                                                       !2, $8
         10        FETCH_LIST_R                                         $10     $7, 1
         11        ASSIGN                                                       !3, $10
         12        FREE                                                         $7
   11    13        CONCAT                                               ~12     !2, '%3A'
         14        CONCAT                                               ~13     ~12, !3
         15        ASSIGN                                                       !4, ~13
   12    16        IS_NOT_IDENTICAL                                             !4, !1
         17      > JMPZ                                                         ~15, ->21
         18    >   CONCAT                                               ~16     !1, '+is+not+equal+after+explode%2Fconcat'
         19        QM_ASSIGN                                            ~17     ~16
         20      > JMP                                                          ->23
         21    >   CONCAT                                               ~18     !1, '+is+equal+after+explode%2Fconcat'
         22        QM_ASSIGN                                            ~17     ~18
         23    >   ECHO                                                         ~17
   13    24        ECHO                                                         '%0A'
    9    25      > JMP                                                          ->2
         26    >   FE_FREE                                                      $6
   14    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
113.54 ms | 487 KiB | 10 Q