3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "File:content/resources/11933/Calm_Nebula_by_The_Free_Mason.jpgDate:Fri Mar 18 11:30:17 CET 2016Size:23124"; $pattern = '/file:(.*?)date:(.*?)size:(.*)/i'; preg_match($pattern, $text, $out); print_r($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OcSXH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text, !1 = $pattern, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'File%3Acontent%2Fresources%2F11933%2FCalm_Nebula_by_The_Free_Mason.jpgDate%3AFri+Mar+18+11%3A30%3A17+CET+2016Size%3A23124'
    3     1        ASSIGN                                                   !1, '%2Ffile%3A%28.%2A%3F%29date%3A%28.%2A%3F%29size%3A%28.%2A%29%2Fi'
    4     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.63 ms | 1398 KiB | 17 Q