3v4l.org

run code in 300+ PHP versions simultaneously
<?php $maxTest = function (int $int) { $value = (PHP_INT_MAX + $int); $result = $value > PHP_INT_MAX ? 'Yes' : 'No'; echo "Result for {$value}: {$result}" . PHP_EOL; }; $maxTest(1); $maxTest(1000); $maxTest(1025);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OH3T7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $maxTest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        ASSIGN                                                   !0, ~1
   10     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              1
          4        DO_FCALL                                      0          
   11     5        INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              1000
          7        DO_FCALL                                      0          
   12     8        INIT_DYNAMIC_CALL                                        !0
          9        SEND_VAL_EX                                              1025
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OH3T7
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $int, !1 = $value, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ADD                                              ~3      9223372036854775807, !0
          2        ASSIGN                                                   !1, ~3
    5     3        IS_SMALLER                                               9223372036854775807, !1
          4      > JMPZ                                                     ~5, ->7
          5    >   QM_ASSIGN                                        ~6      'Yes'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~6      'No'
          8    >   ASSIGN                                                   !2, ~6
    7     9        ROPE_INIT                                     4  ~9      'Result+for+'
         10        ROPE_ADD                                      1  ~9      ~9, !1
         11        ROPE_ADD                                      2  ~9      ~9, '%3A+'
         12        ROPE_END                                      3  ~8      ~9, !2
         13        CONCAT                                           ~11     ~8, '%0A'
         14        ECHO                                                     ~11
    8    15      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.18 ms | 1008 KiB | 13 Q