3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convert($date) { preg_match('~^(\d)(\d)-(\d)(\d)-\d\d(\d\d)$~', $date, $m); return "$m[1] $m[2] $m[3] $m[4] $m[5]"; } 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/7SVL3
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/7SVL3
function name:  convert
number of ops:  22
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-%5Cd%5Cd%28%5Cd%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                                     9  ~9      ~3
          8        ROPE_ADD                                      1  ~9      ~9, '+++'
          9        FETCH_DIM_R                                      ~4      !1, 2
         10        ROPE_ADD                                      2  ~9      ~9, ~4
         11        ROPE_ADD                                      3  ~9      ~9, '++++++++'
         12        FETCH_DIM_R                                      ~5      !1, 3
         13        ROPE_ADD                                      4  ~9      ~9, ~5
         14        ROPE_ADD                                      5  ~9      ~9, '++++'
         15        FETCH_DIM_R                                      ~6      !1, 4
         16        ROPE_ADD                                      6  ~9      ~9, ~6
         17        ROPE_ADD                                      7  ~9      ~9, '++++++++++'
         18        FETCH_DIM_R                                      ~7      !1, 5
         19        ROPE_END                                      8  ~8      ~9, ~7
         20      > RETURN                                                   ~8
    7    21*     > RETURN                                                   null

End of function convert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.74 ms | 1399 KiB | 16 Q