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/81GDc
function name:  (null)
number of ops:  18
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                                                 '%27%2C+%27_%27%29%2C+%27'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        CONCAT                                           ~8      '%29%2C+%27', $7
         12        ASSIGN                                                   !2, ~8
    6    13        CONCAT                                           ~10     !1, '%0A%0A'
         14        ECHO                                                     ~10
    7    15        CONCAT                                           ~11     !2, '%0A'
         16        ECHO                                                     ~11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.41 ms | 1394 KiB | 17 Q