3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headline = "1940,superman's,action,figure,ideal,wood,,"; echo $headline; $headline = str_replace(',,',"",$headline); echo $headline; $headline = str_replace("'","",$headline); echo $headline;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/61M3j
function name:  (null)
number of ops:  17
compiled vars:  !0 = $headline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1940%2Csuperman%27s%2Caction%2Cfigure%2Cideal%2Cwood%2C%2C'
    4     1        ECHO                                                     !0
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%2C%2C'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
    6     8        ECHO                                                     !0
    7     9        INIT_FCALL                                               'str_replace'
         10        SEND_VAL                                                 '%27'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
    8    15        ECHO                                                     !0
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.27 ms | 1394 KiB | 15 Q