3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = " ala KOM1/9/2000 7/7/2015 1-7-2001 7.7.2001 "; echo preg_replace("/(\d+)-(\d+)-(\d+)/", "$2/$3/$1", "2007-01-25"); echo preg_replace( "/\d{2}/", "XX", $s); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lbq02
function name:  (null)
number of ops:  14
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+ala+KOM1%2F9%2F2000+7%2F7%2F2015+1-7-2001+7.7.2001+'
    5     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5Cd%2B%29-%28%5Cd%2B%29-%28%5Cd%2B%29%2F'
          3        SEND_VAL                                                 '%242%2F%243%2F%241'
          4        SEND_VAL                                                 '2007-01-25'
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    6     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5Cd%7B2%7D%2F'
    7     9        SEND_VAL                                                 'XX'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.92 ms | 1394 KiB | 15 Q