3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/(.*)/', 'foo', 'bar') . "\n"; echo preg_replace('/.+/', 'foo', 'bar') . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TcJTL
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%28.%2A%29%2F'
          2        SEND_VAL                                                 'foo'
          3        SEND_VAL                                                 'bar'
          4        DO_ICALL                                         $0      
          5        CONCAT                                           ~1      $0, '%0A'
          6        ECHO                                                     ~1
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F.%2B%2F'
          9        SEND_VAL                                                 'foo'
         10        SEND_VAL                                                 'bar'
         11        DO_ICALL                                         $2      
         12        CONCAT                                           ~3      $2, '%0A'
         13        ECHO                                                     ~3
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.01 ms | 1394 KiB | 15 Q