3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '[2017-03-14 11:48:22] Steve T: Hi! [2017-03-14 11:49:01] Oscar: Hi! :D How are u doin? [2017-03-14 11:50:24] Steve T: Im doing great :P'; $returnValue = preg_match_all( '/^\\[(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\] ([\\w\\s]+): (.+)$/m', $subject, $matches, PREG_SET_ORDER // this groups the result nicely ); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ovrt6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $subject, !1 = $returnValue, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B2017-03-14+11%3A48%3A22%5D+Steve+T%3A+Hi%21%0A%5B2017-03-14+11%3A49%3A01%5D+Oscar%3A+Hi%21+%3AD+How+are+u+doin%3F%0A%5B2017-03-14+11%3A50%3A24%5D+Steve+T%3A+Im+doing+great+%3AP'
    7     1        INIT_FCALL                                               'preg_match_all'
    8     2        SEND_VAL                                                 '%2F%5E%5C%5B%28%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D%29%5C%5D+%28%5B%5Cw%5Cs%5D%2B%29%3A+%28.%2B%29%24%2Fm'
    9     3        SEND_VAR                                                 !0
   10     4        SEND_REF                                                 !2
   11     5        SEND_VAL                                                 2
    7     6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
   14     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.35 ms | 997 KiB | 15 Q