3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = "12345g34234j"; print($c . "\n"); $d = preg_replace('/\D/', '', $c); print($c. "\n"); print($d. "\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MihSG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $c, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12345g34234j'
    4     1        CONCAT                                           ~3      !0, '%0A'
          2        ECHO                                                     ~3
    5     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%5CD%2F'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9        CONCAT                                           ~6      !0, '%0A'
         10        ECHO                                                     ~6
    7    11        CONCAT                                           ~7      !1, '%0A'
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.78 ms | 1394 KiB | 15 Q