3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = strftime(str_repeat("x", 2048), time()); if (is_string($r)) { var_dump("string:" . strlen($r)); } else { var_dump($r); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWe55
function name:  (null)
number of ops:  23
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strftime'
          1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 'x'
          3        SEND_VAL                                                 2048
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'time'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    3    11        TYPE_CHECK                                   64          !0
         12      > JMPZ                                                     ~5, ->19
    5    13    >   INIT_FCALL                                               'var_dump'
         14        STRLEN                                           ~6      !0
         15        CONCAT                                           ~7      'string%3A', ~6
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > JMP                                                      ->22
    9    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   10    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.61 ms | 1395 KiB | 21 Q