3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.55 ms | 1394 KiB | 17 Q