3v4l.org

run code in 200+ PHP versions simultaneously
<?php $main_string = "23/CSE/4/2014"; $sub_string = "/CSE/4/2014"; echo str_replace($sub_string, '', $main_string);
based on CpNKP
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 >   QM_ASSIGN                                                !0
   3     1        QM_ASSIGN                                                !1
   5     2        INIT_FCALL                                               'str_replace'
         3        SEND_VAR                                                 !1
         4        SEND_VAL                                                 ''
         5        SEND_VAR                                                 !0
         6        DO_ICALL                                         $4      
         7        ASSIGN_OBJ                                               $4
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0