3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "- jedna\n- dva\n- tri"; echo $text; echo(preg_replace('/\n\s*-\s*/m', "\n", $text));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4mqdQ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '-+jedna%0A-+dva%0A-+tri'
    5     1        ECHO                                                     !0
    7     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5Cn%5Cs%2A-%5Cs%2A%2Fm'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.19 ms | 1394 KiB | 15 Q