3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Please ask your questions after the session is finished."; preg_match_all('/\h+/', $str,$matches, PREG_OFFSET_CAPTURE); $str = substr_replace($str, "\n", $matches[0][2][1], strlen($matches[0][2][0])); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3qg9C
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Please+ask+your+questions+after+the+session+is+finished.'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Ch%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 256
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'substr_replace'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%0A'
         10        FETCH_DIM_R                                      ~4      !1, 0
         11        FETCH_DIM_R                                      ~5      ~4, 2
         12        FETCH_DIM_R                                      ~6      ~5, 1
         13        SEND_VAL                                                 ~6
         14        FETCH_DIM_R                                      ~7      !1, 0
         15        FETCH_DIM_R                                      ~8      ~7, 2
         16        FETCH_DIM_R                                      ~9      ~8, 0
         17        STRLEN                                           ~10     ~9
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !0, $11
    6    21        ECHO                                                     !0
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.27 ms | 998 KiB | 15 Q