3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arguments = "ahoj ahoj hello"; var_dump(ereg_replace('\w+', ' ', $arguments)); var_dump(preg_replace('/\w+/', ' ', $arguments));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQI17
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ahoj++ahoj++hello'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL_BY_NAME                                       'ereg_replace'
          3        SEND_VAL_EX                                              '%5Cw%2B'
          4        SEND_VAL_EX                                              '+'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2F%5Cw%2B%2F'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.11 ms | 1394 KiB | 17 Q