3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); echo "\ncase 1:\n"; var_dump(preg_replace('<[^0-9+]<','','98237/242')); echo "\ncase 2:\n"; var_dump(preg_replace('<[^0-9+]>','','98237/242'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xke8Z
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        ECHO                                                     '%0Acase+1%3A%0A'
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%3C%5B%5E0-9%2B%5D%3C'
          7        SEND_VAL                                                 ''
          8        SEND_VAL                                                 '98237%2F242'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    7    12        ECHO                                                     '%0Acase+2%3A%0A'
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_replace'
         15        SEND_VAL                                                 '%3C%5B%5E0-9%2B%5D%3E'
         16        SEND_VAL                                                 ''
         17        SEND_VAL                                                 '98237%2F242'
         18        DO_ICALL                                         $3      
         19        SEND_VAR                                                 $3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.07 ms | 1438 KiB | 16 Q