3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array("400 seconds", "400.1 seconds", "400.12 seconds", "400.123 seconds"); foreach ($tests as $index => $test) { var_dump($test); var_dump(DateInterval::createFromDateString($test)->format("%Hh, %im, %ss")); var_dump(date_parse($test)); echo "\n\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 24
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/27oKk
function name:  (null)
number of ops:  26
compiled vars:  !0 = $tests, !1 = $test, !2 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $4      !0, ->24
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->24
          3    >   ASSIGN                                                   !2, ~5
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_STATIC_METHOD_CALL                                  'DateInterval', 'createFromDateString'
          9        SEND_VAR                                                 !1
         10        DO_FCALL                                      0  $8      
         11        INIT_METHOD_CALL                                         $8, 'format'
         12        SEND_VAL_EX                                              '%25Hh%2C+%25im%2C+%25ss'
         13        DO_FCALL                                      0  $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'date_parse'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $11     
         20        SEND_VAR                                                 $11
         21        DO_ICALL                                                 
    8    22        ECHO                                                     '%0A%0A'
    4    23      > JMP                                                      ->2
         24    >   FE_FREE                                                  $4
    9    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.62 ms | 1395 KiB | 17 Q