3v4l.org

run code in 300+ PHP versions simultaneously
<?php $main_string = "23/CSE/4/2014"; $sub_string = "/CSE/4/2014"; echo str_replace($sub_string, '', $main_string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTg5u
function name:  (null)
number of ops:  9
compiled vars:  !0 = $main_string, !1 = $sub_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '23%2FCSE%2F4%2F2014'
    3     1        ASSIGN                                                   !1, '%2FCSE%2F4%2F2014'
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.89 ms | 1393 KiB | 15 Q