3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'entrega/importacao/importacao.class.php'; if (count(explode('/', $path)) > 1) { $path = explode('/', $path); $file = array_pop($path); $path = array_map(function($word) { return ucfirst($word); }, $path); $path = implode('/', $path) . '/' . $file; } echo $path;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 30
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/3QQUG
function name:  (null)
number of ops:  32
compiled vars:  !0 = $path, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'entrega%2Fimportacao%2Fimportacao.class.php'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        COUNT                                            ~4      $3
          6        IS_SMALLER                                               1, ~4
          7      > JMPZ                                                     ~5, ->30
    7     8    >   INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2F'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    8    13        INIT_FCALL                                               'array_pop'
         14        SEND_REF                                                 !0
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !1, $8
    9    17        INIT_FCALL                                               'array_map'
         18        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3QQUG%3A9%240'
         19        SEND_VAL                                                 ~10
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $11     
         22        ASSIGN                                                   !0, $11
   10    23        INIT_FCALL                                               'implode'
         24        SEND_VAL                                                 '%2F'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        CONCAT                                           ~14     $13, '%2F'
         28        CONCAT                                           ~15     ~14, !1
         29        ASSIGN                                                   !0, ~15
   12    30    >   ECHO                                                     !0
         31      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3QQUG%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3QQUG
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'ucfirst'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3QQUG%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.04 ms | 1400 KiB | 23 Q