3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.17 ms | 1394 KiB | 19 Q