3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = preg_match('[asdf]','asdf'); echo array_flip(get_defined_constants(true)['pcre'])[preg_last_error()];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FGbcG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%5Basdf%5D'
          2        SEND_VAL                                                 'asdf'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'array_flip'
          6        INIT_FCALL                                               'get_defined_constants'
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $3      
          9        FETCH_DIM_R                                      ~4      $3, 'pcre'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        INIT_FCALL                                               'preg_last_error'
         13        DO_ICALL                                         $6      
         14        FETCH_DIM_R                                      ~7      $5, $6
         15        ECHO                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 1394 KiB | 21 Q