3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convert($date) { preg_match('~^(\d)(\d)-(\d)(\d)-(\d)(\d)$~', $date, $m); return "$m[1] $m[2] $m[3] $m[4] $m[5] $m[6]"; } echo convert('30-11-1967'); //3 0 1 1 67
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I59h3
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'convert'
          1        SEND_VAL                                                 '30-11-1967'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   12     4      > RETURN                                                   1

Function convert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I59h3
function name:  convert
number of ops:  25
compiled vars:  !0 = $date, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%5E%28%5Cd%29%28%5Cd%29-%28%5Cd%29%28%5Cd%29-%28%5Cd%29%28%5Cd%29%24%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        FETCH_DIM_R                                      ~3      !1, 1
          7        ROPE_INIT                                    11  ~10     ~3
          8        ROPE_ADD                                      1  ~10     ~10, '+++++++'
          9        FETCH_DIM_R                                      ~4      !1, 2
         10        ROPE_ADD                                      2  ~10     ~10, ~4
         11        ROPE_ADD                                      3  ~10     ~10, '++++++++'
         12        FETCH_DIM_R                                      ~5      !1, 3
         13        ROPE_ADD                                      4  ~10     ~10, ~5
         14        ROPE_ADD                                      5  ~10     ~10, '+++++++'
         15        FETCH_DIM_R                                      ~6      !1, 4
         16        ROPE_ADD                                      6  ~10     ~10, ~6
         17        ROPE_ADD                                      7  ~10     ~10, '++++++++++'
         18        FETCH_DIM_R                                      ~7      !1, 5
         19        ROPE_ADD                                      8  ~10     ~10, ~7
         20        ROPE_ADD                                      9  ~10     ~10, '++++'
         21        FETCH_DIM_R                                      ~8      !1, 6
         22        ROPE_END                                     10  ~9      ~10, ~8
         23      > RETURN                                                   ~9
    7    24*     > RETURN                                                   null

End of function convert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.21 ms | 1399 KiB | 16 Q