3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = '2 dogs'; $int = (string)(int)$val; echo $int == $val, "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T8QYS
function name:  (null)
number of ops:  8
compiled vars:  !0 = $val, !1 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2+dogs'
    4     1        CAST                                          4  ~3      !0
          2        CAST                                          6  ~4      ~3
          3        ASSIGN                                                   !1, ~4
    5     4        IS_EQUAL                                         ~6      !1, !0
          5        ECHO                                                     ~6
          6        ECHO                                                     '%0A'
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.91 ms | 1392 KiB | 13 Q