3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ad($a=''){} if(is_int($a)){ echo $a.' >> int<br>'; }else{ echo $a.' >> not<br>'; } ad(); ad(2); ad('2'); ad(2.5); ad(0); ad(1);
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 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fXrse
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TYPE_CHECK                                   16          !0
          1      > JMPZ                                                     ~1, ->5
    4     2    >   CONCAT                                           ~2      !0, '+%3E%3E+int%3Cbr%3E'
          3        ECHO                                                     ~2
          4      > JMP                                                      ->7
    6     5    >   CONCAT                                           ~3      !0, '+%3E%3E+not%3Cbr%3E'
          6        ECHO                                                     ~3
    8     7    >   INIT_FCALL                                               'ad'
          8        DO_FCALL                                      0          
    9     9        INIT_FCALL                                               'ad'
         10        SEND_VAL                                                 2
         11        DO_FCALL                                      0          
   10    12        INIT_FCALL                                               'ad'
         13        SEND_VAL                                                 '2'
         14        DO_FCALL                                      0          
   11    15        INIT_FCALL                                               'ad'
         16        SEND_VAL                                                 2.5
         17        DO_FCALL                                      0          
   12    18        INIT_FCALL                                               'ad'
         19        SEND_VAL                                                 0
         20        DO_FCALL                                      0          
   13    21        INIT_FCALL                                               'ad'
         22        SEND_VAL                                                 1
         23        DO_FCALL                                      0          
         24      > RETURN                                                   1

Function ad:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fXrse
function name:  ad
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      ''
          1      > RETURN                                                   null

End of function ad

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.7 ms | 1398 KiB | 19 Q