3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "blah {{something.tsomehting}} balah {{contact.whatever}} "; $url_pieces = explode('{{',$url); foreach ($url_pieces as &$piece) { $sub_pieces = explode('}}',$url); $piece = $sub_pieces[1]; } print_r($url_pieces);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/iq6vP
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url, !1 = $url_pieces, !2 = $piece, !3 = $sub_pieces
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'blah+%7B%7Bsomething.tsomehting%7D%7D+balah+++%7B%7Bcontact.whatever%7D%7D+'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%7B%7B'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6      > FE_RESET_RW                                      $7      !1, ->16
          7    > > FE_FETCH_RW                                              $7, !2, ->16
    6     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%7D%7D'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    7    13        FETCH_DIM_R                                      ~10     !3, 1
         14        ASSIGN                                                   !2, ~10
    5    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $7
    9    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.71 ms | 1395 KiB | 17 Q