3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "00:12"; if(strlen($start) == 5){ $temp = explode(":", $start); $minutes = $temp[0] * 60; $seconds = $temp[1]; $temp = $minutes + $seconds; var_dump($temp); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Z8oor
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $temp, !2 = $minutes, !3 = $seconds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '00%3A12'
    5     1        STRLEN                                           ~5      !0
          2        IS_EQUAL                                                 ~5, 5
          3      > JMPZ                                                     ~6, ->19
    7     4    >   INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3A'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    9     9        FETCH_DIM_R                                      ~9      !1, 0
         10        MUL                                              ~10     ~9, 60
         11        ASSIGN                                                   !2, ~10
   10    12        FETCH_DIM_R                                      ~12     !1, 1
         13        ASSIGN                                                   !3, ~12
   12    14        ADD                                              ~14     !2, !3
         15        ASSIGN                                                   !1, ~14
   13    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   15    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.58 ms | 940 KiB | 18 Q