3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Darsstar"; $b = $a . "\n"; if (preg_match('/^[A-Z][a-z]++$/', $a)) { echo 'A zonder D' . PHP_EOL; } if (preg_match('/^[A-Z][a-z]++$/', $b)) { echo 'B zonder D' . PHP_EOL; } if (preg_match('/^[A-Z][a-z]++$/D', $a)) { echo 'A met D' . PHP_EOL; } if (preg_match('/^[A-Z][a-z]++$/D', $b)) { echo 'B met D' . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 21
Branch analysis from position: 15
Branch analysis from position: 9
filename:       /in/VcgC1
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Darsstar'
    4     1        CONCAT                                           ~3      !0, '%0A'
          2        ASSIGN                                                   !1, ~3
    6     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5E%5BA-Z%5D%5Ba-z%5D%2B%2B%24%2F'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->9
    8     8    >   ECHO                                                     'A+zonder+D%0A'
   11     9    >   INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%5E%5BA-Z%5D%5Ba-z%5D%2B%2B%24%2F'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13      > JMPZ                                                     $6, ->15
   13    14    >   ECHO                                                     'B+zonder+D%0A'
   16    15    >   INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%5E%5BA-Z%5D%5Ba-z%5D%2B%2B%24%2FD'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19      > JMPZ                                                     $7, ->21
   18    20    >   ECHO                                                     'A+met+D%0A'
   21    21    >   INIT_FCALL                                               'preg_match'
         22        SEND_VAL                                                 '%2F%5E%5BA-Z%5D%5Ba-z%5D%2B%2B%24%2FD'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $8      
         25      > JMPZ                                                     $8, ->27
   23    26    >   ECHO                                                     'B+met+D%0A'
   24    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
244.83 ms | 1401 KiB | 15 Q