3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Lorum ipsum &nbsp;<a href="http://www.test.com">This is a test link</a>.</p>'; $text = ucfirst($text); $text = preg_replace('/\v+|\\\r\\\n/', '<br />', $text); echo $text;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UYFWn
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3ELorum+ipsum+%26nbsp%3B%3Ca+href%3D%22http%3A%2F%2Fwww.test.com%22%3EThis+is+a+test+link%3C%2Fa%3E.%3C%2Fp%3E'
    4     1        INIT_FCALL                                               'ucfirst'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5Cv%2B%7C%5C%5Cr%5C%5Cn%2F'
          7        SEND_VAL                                                 '%3Cbr+%2F%3E'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    6    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.77 ms | 1394 KiB | 17 Q