3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '09:40 - 10:40'; $rango = explode("-", $d); print_r($rango); echo trim($rango[0]); //echo date('w', strtotime($d->format('Y-m-d'))); //echo date("H:i:s", strtotime($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ysbqh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $rango
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '09%3A40+-+10%3A40'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'trim'
         10        FETCH_DIM_R                                      ~6      !1, 0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.72 ms | 1394 KiB | 19 Q