3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $re = '/\b[Aa]ny\b/'; $str = 'Will *any* company do *any* job, (are there any)?'; If(preg_match_all($re, $str, $matches)){ //string contains word } // Print the entire match result var_dump($matches);
based on 8aKv0
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 43) Position 1 = 8, Position 2 = 8
Branch analysis from position: 8
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/8hlQD
function name:  (null)
number of ops:  12
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '%2F%5Cb%5BAa%5Dny%5Cb%2F'
   4     1        ASSIGN                                                   !1, 'Will+%2Aany%2A+company+do+%2Aany%2A+job%2C+%28are+there+any%29%3F'
   6     2        INIT_FCALL                                               'preg_match_all'
         3        SEND_VAR                                                 !0
         4        SEND_VAR                                                 !1
         5        SEND_REF                                                 !2
         6        DO_ICALL                                         $5      
         7      > JMPZ                                                     $5, ->8
  11     8    >   INIT_FCALL                                               'var_dump'
         9        SEND_VAR                                                 !2
        10        DO_ICALL                                                 
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0