3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = '/vb/frontend/web/img/up/bf9b12de5ea78cecacd3dde69f2a72f8/708/195c8e9069e9b356767ca57d3ead6285/7/l.jpg'; $webRoot = '/var/www/vb'; echo strtr($path, [ $webRoot . '/web' => '', $webRoot . '_dev/web' => '', $webRoot . '_stage/web' => '', ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/58gXM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $path, !1 = $webRoot
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fvb%2Ffrontend%2Fweb%2Fimg%2Fup%2Fbf9b12de5ea78cecacd3dde69f2a72f8%2F708%2F195c8e9069e9b356767ca57d3ead6285%2F7%2Fl.jpg'
    3     1        ASSIGN                                                   !1, '%2Fvar%2Fwww%2Fvb'
    4     2        INIT_FCALL                                               'strtr'
          3        SEND_VAR                                                 !0
    5     4        CONCAT                                           ~4      !1, '%2Fweb'
          5        INIT_ARRAY                                       ~5      '', ~4
    6     6        CONCAT                                           ~6      !1, '_dev%2Fweb'
          7        ADD_ARRAY_ELEMENT                                ~5      '', ~6
    7     8        CONCAT                                           ~7      !1, '_stage%2Fweb'
          9        ADD_ARRAY_ELEMENT                                ~5      '', ~7
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $8      
         12        ECHO                                                     $8
    8    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.67 ms | 1394 KiB | 15 Q