3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strpos( '12341234', '2'); echo "\n"; echo substr_replace ( '12341234' , '', 1 , 1 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0vSlm
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'strpos'
          1        SEND_VAL                                                 '12341234'
          2        SEND_VAL                                                 '2'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    6     5        ECHO                                                     '%0A'
    8     6        INIT_FCALL                                               'substr_replace'
          7        SEND_VAL                                                 '12341234'
          8        SEND_VAL                                                 ''
          9        SEND_VAL                                                 1
         10        SEND_VAL                                                 1
         11        DO_ICALL                                         $1      
         12        ECHO                                                     $1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1394 KiB | 17 Q