3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '12895 6 7 8 9'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '2546734 34 55'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '2334734556 341 5'); echo "$text\n"; $text = preg_replace('/\s+(?=(\d\s*){0,3}$)/', '', '23347345563 4 1 5'); echo "$text\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BaGJZ
function name:  (null)
number of ops:  37
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%28%5Cd%5Cs%2A%29%7B0%2C3%7D%24%29%2F'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 '12895+6+7+8+9'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        NOP                                                      
          7        FAST_CONCAT                                      ~3      !0, '%0A'
          8        ECHO                                                     ~3
    5     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%28%5Cd%5Cs%2A%29%7B0%2C3%7D%24%29%2F'
         11        SEND_VAL                                                 ''
         12        SEND_VAL                                                 '2546734+34+55'
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
    6    15        NOP                                                      
         16        FAST_CONCAT                                      ~6      !0, '%0A'
         17        ECHO                                                     ~6
    7    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%28%5Cd%5Cs%2A%29%7B0%2C3%7D%24%29%2F'
         20        SEND_VAL                                                 ''
         21        SEND_VAL                                                 '2334734556+341+5'
         22        DO_ICALL                                         $7      
         23        ASSIGN                                                   !0, $7
    8    24        NOP                                                      
         25        FAST_CONCAT                                      ~9      !0, '%0A'
         26        ECHO                                                     ~9
    9    27        INIT_FCALL                                               'preg_replace'
         28        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%28%5Cd%5Cs%2A%29%7B0%2C3%7D%24%29%2F'
         29        SEND_VAL                                                 ''
         30        SEND_VAL                                                 '23347345563+4+1+5'
         31        DO_ICALL                                         $10     
         32        ASSIGN                                                   !0, $10
   10    33        NOP                                                      
         34        FAST_CONCAT                                      ~12     !0, '%0A'
         35        ECHO                                                     ~12
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.26 ms | 1011 KiB | 14 Q