3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = "5"; $max = ($max ? $max + 1 : 1); var_dump($max); $max = "5"; $max = ($max ? (int)$max + 1 : 1); var_dump($max);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
Branch analysis from position: 16
filename:       /in/FblVo
function name:  (null)
number of ops:  22
compiled vars:  !0 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '5'
    4     1      > JMPZ                                                     !0, ->5
          2    >   ADD                                              ~2      !0, 1
          3        QM_ASSIGN                                        ~3      ~2
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~3      1
          6    >   ASSIGN                                                   !0, ~3
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    9    10        ASSIGN                                                   !0, '5'
   10    11      > JMPZ                                                     !0, ->16
         12    >   CAST                                          4  ~7      !0
         13        ADD                                              ~8      ~7, 1
         14        QM_ASSIGN                                        ~9      ~8
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~9      1
         17    >   ASSIGN                                                   !0, ~9
   12    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.13 ms | 1395 KiB | 15 Q