3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://somedomain/somefolder/someresoure/somemodel/someaction/id"; $apart = explode('/',$url); foreach ($apart as $key => $val) { echo 'key: ' . $key . ', value: ' . $val . '.....'; } print_r(parse_url($url)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/HKX0u
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url, !1 = $apart, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fsomedomain%2Fsomefolder%2Fsomeresoure%2Fsomemodel%2Fsomeaction%2Fid'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    6     6      > FE_RESET_R                                       $7      !1, ->15
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->15
          8    >   ASSIGN                                                   !3, ~8
   10     9        CONCAT                                           ~10     'key%3A+', !3
         10        CONCAT                                           ~11     ~10, '%2C+value%3A+'
         11        CONCAT                                           ~12     ~11, !2
         12        CONCAT                                           ~13     ~12, '.....'
         13        ECHO                                                     ~13
    6    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $7
   14    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'parse_url'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $14     
         20        SEND_VAR                                                 $14
         21        DO_ICALL                                                 
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.51 ms | 1387 KiB | 19 Q