3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = PHP_INT_MAX; $b = $a + 1; $c = (int) $b; $d = intval($b); var_dump($b < 0); var_dump($c < 0); var_dump($d < 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g8NCp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 9223372036854775807
    4     1        ADD                                                  ~5      !0, 1
          2        ASSIGN                                                       !1, ~5
    5     3        CAST                                              4  ~7      !1
          4        ASSIGN                                                       !2, ~7
    6     5        CAST                                              4  ~9      !1
          6        ASSIGN                                                       !3, ~9
    8     7        INIT_FCALL                                                   'var_dump'
          8        IS_SMALLER                                           ~11     !1, 0
          9        SEND_VAL                                                     ~11
         10        DO_ICALL                                                     
    9    11        INIT_FCALL                                                   'var_dump'
         12        IS_SMALLER                                           ~13     !2, 0
         13        SEND_VAL                                                     ~13
         14        DO_ICALL                                                     
   10    15        INIT_FCALL                                                   'var_dump'
         16        IS_SMALLER                                           ~15     !3, 0
         17        SEND_VAL                                                     ~15
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.66 ms | 1473 KiB | 14 Q