3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '\n123133\n\n54444\n435345345\n43534535'; preg_replace('/[\D](\\n)/g', '', $string); echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H5KF0
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cn123133%5Cn%5Cn54444%5Cn435345345%5Cn43534535'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5CD%5D%28%5Cn%29%2Fg'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    7     6        ECHO                                                     !0
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.18 ms | 1394 KiB | 15 Q