3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '"4:01pm - <b>n1234</b>",+0.50'; preg_match('/\"(.*?)\s-\s(.*?)\",(.*)/', strip_tags($str), $matches); unset($matches[0]); // unset [0] because that is the full match. $matches[] = array_shift($matches); // takes first item and makes it last. echo implode("<br>\n", $matches); //var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/smQIV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%224%3A01pm+-+%3Cb%3En1234%3C%2Fb%3E%22%2C%2B0.50'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%22%28.%2A%3F%29%5Cs-%5Cs%28.%2A%3F%29%5C%22%2C%28.%2A%29%2F'
          3        INIT_FCALL                                               'strip_tags'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    6     9        UNSET_DIM                                                !1, 0
    7    10        INIT_FCALL                                               'array_shift'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                         $6      
         13        ASSIGN_DIM                                               !1
         14        OP_DATA                                                  $6
    9    15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%3Cbr%3E%0A'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.92 ms | 1013 KiB | 17 Q