3v4l.org

run code in 300+ PHP versions simultaneously
<?php $character_map = array(',', '/', '(', ')', ' ', '-', ':', '__'); $replace_values = str_repeat('REPLACE(', count($character_map)); $replace_parts = join("), '", $character_map); print $replace_values . "\n\n"; print $replace_parts . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7dMAP
function name:  (null)
number of ops:  17
compiled vars:  !0 = $character_map, !1 = $replace_values, !2 = $replace_parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 'REPLACE%28'
          3        COUNT                                            ~4      !0
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    4     7        INIT_FCALL                                               'join'
          8        SEND_VAL                                                 '%29%2C+%27'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    6    12        CONCAT                                           ~9      !1, '%0A%0A'
         13        ECHO                                                     ~9
    7    14        CONCAT                                           ~10     !2, '%0A'
         15        ECHO                                                     ~10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.41 ms | 1394 KiB | 17 Q