3v4l.org

run code in 300+ PHP versions simultaneously
<?php function remTxt( $text ) { echo preg_replace("/[^0-9]/","",$text); } remTxt("123wret456fgh678"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t0XBD
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'remtxt'
          1        SEND_VAL                                                 '123wret456fgh678'
          2        DO_FCALL                                      0          
   10     3      > RETURN                                                   1

Function remtxt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t0XBD
function name:  remTxt
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E0-9%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
    6     7      > RETURN                                                   null

End of function remtxt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.34 ms | 1396 KiB | 16 Q