3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Cloud print - 24" x 18"'; $pattern = "/^(2)(.*)[\"]]$/i"; preg_match_all("/2.*\"/", $str, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eGqN3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $pattern, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Cloud+print+-+24%22+x+18%22'
    3     1        ASSIGN                                                   !1, '%2F%5E%282%29%28.%2A%29%5B%22%5D%5D%24%2Fi'
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F2.%2A%22%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.82 ms | 1385 KiB | 17 Q