3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 0); $string = 'foo'; var_export(preg_match('~foo', $string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NmVHA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, 'foo'
    6     5        INIT_FCALL                                               'var_export'
          6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%7Efoo'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.78 ms | 939 KiB | 20 Q