3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello fri3nd, you're looking good today! What a Great day this is! How fancy and cool!"; var_export(preg_split('/(?:\S+\K +){3}/', $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/08lM9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+fri3nd%2C+you%27re+looking+good+today%21++What+a+Great+day+this+is%21++How+++++fancy+and+cool%21'
    5     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%28%3F%3A%5CS%2B%5CK+%2B%29%7B3%7D%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.65 ms | 999 KiB | 15 Q