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 . ', ' . $val . '</br>'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/MR9c4
function name:  (null)
number of ops:  16
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, ->14
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->14
          8    >   ASSIGN                                                   !3, ~8
   10     9        CONCAT                                           ~10     !3, '%2C+'
         10        CONCAT                                           ~11     ~10, !2
         11        CONCAT                                           ~12     ~11, '%3C%2Fbr%3E'
         12        ECHO                                                     ~12
    6    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $7
   15    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.24 ms | 1399 KiB | 15 Q