3v4l.org

run code in 300+ PHP versions simultaneously
<?php $no_params = preg_replace('%/\{[^}]*}%', '', $this->path); $no_dash = implode(array_map('ucfirst', explode('-', $no_params))); $paths = array_slice(explode('/', trim($no_dash, '/')), 0, -1); array_map('ucfirst', $paths);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oG1WV
function name:  (null)
number of ops:  39
compiled vars:  !0 = $no_params, !1 = $no_dash, !2 = $paths
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%25%2F%5C%7B%5B%5E%7D%5D%2A%7D%25'
          2        SEND_VAL                                                 ''
          3        FETCH_THIS                                       $3      
          4        FETCH_OBJ_R                                      ~4      $3, 'path'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !0, $5
    3     8        INIT_FCALL                                               'implode'
          9        INIT_FCALL                                               'array_map'
         10        SEND_VAL                                                 'ucfirst'
         11        INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '-'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !1, $9
    4    20        INIT_FCALL                                               'array_slice'
         21        INIT_FCALL                                               'explode'
         22        SEND_VAL                                                 '%2F'
         23        INIT_FCALL                                               'trim'
         24        SEND_VAR                                                 !1
         25        SEND_VAL                                                 '%2F'
         26        DO_ICALL                                         $11     
         27        SEND_VAR                                                 $11
         28        DO_ICALL                                         $12     
         29        SEND_VAR                                                 $12
         30        SEND_VAL                                                 0
         31        SEND_VAL                                                 -1
         32        DO_ICALL                                         $13     
         33        ASSIGN                                                   !2, $13
    5    34        INIT_FCALL                                               'array_map'
         35        SEND_VAL                                                 'ucfirst'
         36        SEND_VAR                                                 !2
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.74 ms | 1396 KiB | 25 Q