3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chinese_date($timestamp, $output_delimiter = ' '){ $info_arr = explode(' ',date('Y m d H i s',strtotime('now'))); return implode($output_delimiter, array_map(function($v,$k){ echo $k.'-'.$v.'|'; }, $info_arr, array_keys($info_arr))); } echo chinese_date('now');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6YUO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'chinese_date'
          1        SEND_VAL                                                 'now'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function chinese_date:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6YUO
function name:  chinese_date
number of ops:  29
compiled vars:  !0 = $timestamp, !1 = $output_delimiter, !2 = $info_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      '+'
    3     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y+m+d+H+i+s'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 'now'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !2, $5
    5    14        INIT_FCALL                                               'implode'
         15        SEND_VAR                                                 !1
         16        INIT_FCALL                                               'array_map'
         17        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fv6YUO%3A5%240'
    7    18        SEND_VAL                                                 ~7
         19        SEND_VAR                                                 !2
         20        INIT_FCALL                                               'array_keys'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                         $9      
         25        SEND_VAR                                                 $9
         26        DO_ICALL                                         $10     
         27      > RETURN                                                   $10
    8    28*     > RETURN                                                   null

End of function chinese_date

Function %00%7Bclosure%7D%2Fin%2Fv6YUO%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6YUO
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        CONCAT                                           ~2      !1, '-'
          3        CONCAT                                           ~3      ~2, !0
          4        CONCAT                                           ~4      ~3, '%7C'
          5        ECHO                                                     ~4
    7     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fv6YUO%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1403 KiB | 26 Q