3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = @preg_match("ascea(", "test"); // invalid regex if($d === FALSE) { print "Error in regex."; // get detailed info if needed with preg_last_error }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/230ul
function name:  (null)
number of ops:  11
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~1      
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 'ascea%28'
          3        SEND_VAL                                                 'test'
          4        DO_ICALL                                         $2      
          5        END_SILENCE                                              ~1
          6        ASSIGN                                                   !0, $2
    5     7        TYPE_CHECK                                    4          !0
          8      > JMPZ                                                     ~4, ->10
    6     9    >   ECHO                                                     'Error+in+regex.'
    9    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.65 ms | 1385 KiB | 15 Q