3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = '+259890111***'; echo $new_number = substr_replace($number, 0, 0, 3); echo PHP_EOL; $number1 = '+249890111***'; echo $new_number1 = substr_replace($number1, 0, 0, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jOuCK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $number, !1 = $new_number, !2 = $number1, !3 = $new_number1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2B259890111%2A%2A%2A'
    5     1        INIT_FCALL                                               'substr_replace'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $5      
          7        ASSIGN                                           ~6      !1, $5
          8        ECHO                                                     ~6
    7     9        ECHO                                                     '%0A'
    9    10        ASSIGN                                                   !2, '%2B249890111%2A%2A%2A'
   11    11        INIT_FCALL                                               'substr_replace'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 3
         16        DO_ICALL                                         $8      
         17        ASSIGN                                           ~9      !3, $8
         18        ECHO                                                     ~9
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.32 ms | 1010 KiB | 14 Q