3v4l.org

run code in 300+ PHP versions simultaneously
<?php // transforms a U.S. date (MM/DD/YYYY) into a French date (DD/MM/YY) $a1 = '04/23/0288'; // for test $a2 = preg_replace("/([\d]+)\/([\d]+)\/[\d]{1}([\d]){2}/", "$2/$1/$3", $a1); echo $a2; // must be '23/04/15'
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lrl74
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '04%2F23%2F0288'
    6     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%28%5B%5Cd%5D%2B%29%5C%2F%28%5B%5Cd%5D%2B%29%5C%2F%5B%5Cd%5D%7B1%7D%28%5B%5Cd%5D%29%7B2%7D%2F'
          3        SEND_VAL                                                 '%242%2F%241%2F%243'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    8     7        ECHO                                                     !1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.8 ms | 1394 KiB | 15 Q