3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = array( "start" => "01:30 pm", "end"=> "02:30 pm"); if(!empty($now['start'])) { echo ltrim($now['start'],"0") .' - '. ltrim($now['end'],"0"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/TkLKH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~2      !0, 'start'
          2        BOOL_NOT                                         ~3      ~2
          3      > JMPZ                                                     ~3, ->17
    6     4    >   INIT_FCALL                                               'ltrim'
          5        FETCH_DIM_R                                      ~4      !0, 'start'
          6        SEND_VAL                                                 ~4
          7        SEND_VAL                                                 '0'
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '+-+'
         10        INIT_FCALL                                               'ltrim'
         11        FETCH_DIM_R                                      ~7      !0, 'end'
         12        SEND_VAL                                                 ~7
         13        SEND_VAL                                                 '0'
         14        DO_ICALL                                         $8      
         15        CONCAT                                           ~9      ~6, $8
         16        ECHO                                                     ~9
    9    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.96 ms | 1394 KiB | 15 Q