3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match('/$[^-][0-9]+/', (string) '-1'); echo preg_match('/$[^-][0-9]+/', (string) '24');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tRvc9
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%24%5B%5E-%5D%5B0-9%5D%2B%2F'
          2        CAST                                          6  ~0      '-1'
          3        SEND_VAL                                                 ~0
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
    4     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%24%5B%5E-%5D%5B0-9%5D%2B%2F'
          8        CAST                                          6  ~2      '24'
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.74 ms | 939 KiB | 16 Q