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/0FJW2
function name:  (null)
number of ops:  8
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
    9     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.12 ms | 1394 KiB | 15 Q