3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '1330'; var_dump( $input, mb_substr($input, 0, 2) . ':' . mb_substr($input, 2, 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLRit
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1330'
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'mb_substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $2      
          8        CONCAT                                           ~3      $2, '%3A'
          9        INIT_FCALL                                               'mb_substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $4      
         14        CONCAT                                           ~5      ~3, $4
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1010 KiB | 15 Q