3v4l.org

run code in 300+ PHP versions simultaneously
<?php $duration = '4m50s'; var_dump(preg_split('/((\d+)h)?((\d+)m)?((\d+)s)?/', $duration, null, PREG_SPLIT_NO_EMPTY & PREG_SPLIT_OFFSET_CAPTURE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8j9DX
function name:  (null)
number of ops:  11
compiled vars:  !0 = $duration
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '4m50s'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%28%28%5Cd%2B%29h%29%3F%28%28%5Cd%2B%29m%29%3F%28%28%5Cd%2B%29s%29%3F%2F'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 null
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.17 ms | 1394 KiB | 17 Q