3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = preg_match('/\D/', '768486') !== 1; var_dump($b); $b = preg_match('/\D/', '768d486') !== 1; var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8iXMO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5CD%2F'
          2        SEND_VAL                                                 '768486'
          3        DO_ICALL                                         $1      
          4        IS_NOT_IDENTICAL                                 ~2      $1, 1
          5        ASSIGN                                                   !0, ~2
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%5CD%2F'
         11        SEND_VAL                                                 '768d486'
         12        DO_ICALL                                         $5      
         13        IS_NOT_IDENTICAL                                 ~6      $5, 1
         14        ASSIGN                                                   !0, ~6
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.35 ms | 1394 KiB | 17 Q