3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.83 ms | 1398 KiB | 15 Q