3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( "title" => "My Title", "description" => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type Code: No Promo Code Required Begin: 2014-07-25 00:00:00 Expire: 0000-00-00 00:00:00", "link" => "http://www.gopjn.com/t/3-79115-101746-99698" ); $return = preg_match("/(Code.*Expire:\s\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})/", $myArray["description"],$match); echo "<pre>"; print_r($return); echo "</pre>"; echo $match[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlTBB
function name:  (null)
number of ops:  16
compiled vars:  !0 = $myArray, !1 = $return, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28Code.%2AExpire%3A%5Cs%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D%5Cs%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D%29%2F'
          3        FETCH_DIM_R                                      ~4      !0, 'description'
          4        SEND_VAL                                                 ~4
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   12     8        ECHO                                                     '%3Cpre%3E'
   13     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   14    12        ECHO                                                     '%3C%2Fpre%3E'
   15    13        FETCH_DIM_R                                      ~8      !2, 1
         14        ECHO                                                     ~8
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.52 ms | 1394 KiB | 17 Q