3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM'], ['name' => 'History', 'time' => '11:30:AM - 01:30:PM'], ['name' => 'French', 'time' => '01:31:PM - 03:00:PM'], ]; foreach ($arr as $a) { var_export(DateTime::createFromFormat('h:i:A - h:i:A', $a['time'])); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/FAFus
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $3      !0, ->13
          2    > > FE_FETCH_R                                               $3, !1, ->13
   11     3    >   INIT_FCALL                                               'var_export'
          4        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          5        SEND_VAL                                                 'h%3Ai%3AA+-+h%3Ai%3AA'
          6        FETCH_DIM_R                                      ~4      !1, 'time'
          7        SEND_VAL                                                 ~4
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
   12    11        ECHO                                                     '%0A'
    9    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $3
   14    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.7 ms | 1009 KiB | 14 Q