3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = <<<'TEXT' 1. Qatar 2. Qatar 3 . Cathay 4. Qatar 2 . British 3. Qantas TEXT; $output = preg_replace('/(\d+)([.\s]*)/m','$1 . ',$input); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vSZ2q
function name:  (null)
number of ops:  6
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '+1.+Qatar%0A+2.+Qatar%0A+3+.+Cathay%0A+4.+Qatar%0A+2+.+British%0A+3.+Qantas++'
   11     1        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%28%5Cd%2B%29%28%5B.%5Cs%5D%2A%29%2Fm', '%241+.+'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
   13     4        ECHO                                                         !1
          5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.75 ms | 2069 KiB | 14 Q