3v4l.org

run code in 300+ PHP versions simultaneously
<?php //As an example $phone = $_POST['user_phone'] = "123456789"; echo $phone = preg_replace('/^(\d)/', '0$1', $phone); //^ ^ ^^ Slightly modified
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/thqss
function name:  (null)
number of ops:  12
compiled vars:  !0 = $phone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_W                      global              $1      '_POST'
          1        ASSIGN_DIM                                       ~2      $1, 'user_phone'
          2        OP_DATA                                                  '123456789'
          3        ASSIGN                                                   !0, ~2
    8     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5E%28%5Cd%29%2F'
          6        SEND_VAL                                                 '0%241'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        ASSIGN                                           ~5      !0, $4
         10        ECHO                                                     ~5
    9    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.66 ms | 1398 KiB | 15 Q