3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function asd($a) : int { return $a; } asd(1); if (asd(1) === '1') { echo asd(1); } echo ord(86);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/cl3qP
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'asd'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0          
   12     3        INIT_FCALL                                               'asd'
          4        SEND_VAL                                                 1
          5        DO_FCALL                                      0  $1      
          6        IS_IDENTICAL                                             $1, '1'
          7      > JMPZ                                                     ~2, ->12
   13     8    >   INIT_FCALL                                               'asd'
          9        SEND_VAL                                                 1
         10        DO_FCALL                                      0  $3      
         11        ECHO                                                     $3
   16    12    >   INIT_FCALL                                               'ord'
         13        SEND_VAL                                                 86
         14        DO_ICALL                                         $4      
         15        ECHO                                                     $4
         16      > RETURN                                                   1

Function asd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cl3qP
function name:  asd
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        VERIFY_RETURN_TYPE                                       !0
          2      > RETURN                                                   !0
    8     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function asd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.57 ms | 1397 KiB | 18 Q