3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '12345'; $x = 0; for ($i = 0; $i < 10000; $i++){ $x = ((string)(int)$value === (string)$value); } var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/3IHQj
function name:  (null)
number of ops:  16
compiled vars:  !0 = $value, !1 = $x, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12345'
    5     1        ASSIGN                                                   !1, 0
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    8     4    >   CAST                                          4  ~6      !0
          5        CAST                                          6  ~7      ~6
          6        CAST                                          6  ~8      !0
          7        IS_IDENTICAL                                     ~9      ~7, ~8
          8        ASSIGN                                                   !1, ~9
    7     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 10000
         11      > JMPNZ                                                    ~12, ->4
   11    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.31 ms | 1394 KiB | 15 Q