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/5aaoD
function name:  (null)
number of ops:  19
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        CONCAT                                           ~9      ~8, '%27%29'
         13        ASSIGN                                                   !2, ~9
    6    14        CONCAT                                           ~11     !1, '%0A%0A'
         15        ECHO                                                     ~11
    7    16        CONCAT                                           ~12     !2, '%0A'
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.55 ms | 1399 KiB | 17 Q