3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(getHourFormatForTimingGraph("0")); var_dump(getHourFormatForTimingGraph("3")); var_dump(getHourFormatForTimingGraph("12")); var_dump(getHourFormatForTimingGraph("20")); function getHourFormatForTimingGraph($str) { $dt = DateTime.createFromFormat('G',$str); return $dt; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/knSrS
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'getHourFormatForTimingGraph'
          2        SEND_VAL_EX                                              '0'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL_BY_NAME                                       'getHourFormatForTimingGraph'
          8        SEND_VAL_EX                                              '3'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    4    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL_BY_NAME                                       'getHourFormatForTimingGraph'
         14        SEND_VAL_EX                                              '12'
         15        DO_FCALL                                      0  $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL_BY_NAME                                       'getHourFormatForTimingGraph'
         20        SEND_VAL_EX                                              '20'
         21        DO_FCALL                                      0  $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
   11    24      > RETURN                                                   1

Function gethourformatfortiminggraph:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/knSrS
function name:  getHourFormatForTimingGraph
number of ops:  10
compiled vars:  !0 = $str, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        FETCH_CONSTANT                                   ~2      'DateTime'
          2        INIT_FCALL_BY_NAME                                       'createFromFormat'
          3        SEND_VAL_EX                                              'G'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        CONCAT                                           ~4      ~2, $3
          7        ASSIGN                                                   !1, ~4
   10     8      > RETURN                                                   !1
   11     9*     > RETURN                                                   null

End of function gethourformatfortiminggraph

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.09 ms | 1396 KiB | 15 Q