3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parse_timestamp($timestamp, $format = 'd-m-Y') { $formatted_timestamp = date($format, strtotime($timestamp)); return $formatted_timestamp; } parse_timestamp(time());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CkJ0t
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'parse_timestamp'
          1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $0      
          3        SEND_VAR                                                 $0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function parse_timestamp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CkJ0t
function name:  parse_timestamp
number of ops:  12
compiled vars:  !0 = $timestamp, !1 = $format, !2 = $formatted_timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'd-m-Y'
    5     2        INIT_FCALL                                               'date'
          3        SEND_VAR                                                 !1
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !2, $4
    6    10      > RETURN                                                   !2
    7    11*     > RETURN                                                   null

End of function parse_timestamp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.64 ms | 1397 KiB | 20 Q