3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump('1' + '2'); var_dump(bcadd('1', '2')); function onePlusTwoBC(): string { return bcadd('1', '2'); //return '1' + '2'; } var_dump(onePlusTwoBC()); function onePlusTwo(): string { //return bcadd('1', '2'); return '1' + '2'; } var_dump(onePlusTwo());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aKqim
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     3
          2        DO_ICALL                                                     
    6     3        INIT_FCALL                                                   'var_dump'
          4        INIT_FCALL_BY_NAME                                           'bcadd'
          5        SEND_VAL_EX                                                  '1'
          6        SEND_VAL_EX                                                  '2'
          7        DO_FCALL                                          0  $1      
          8        SEND_VAR                                                     $1
          9        DO_ICALL                                                     
   14    10        INIT_FCALL                                                   'var_dump'
         11        INIT_FCALL                                                   'oneplustwobc'
         12        DO_FCALL                                          0  $3      
         13        SEND_VAR                                                     $3
         14        DO_ICALL                                                     
   22    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'oneplustwo'
         17        DO_FCALL                                          0  $5      
         18        SEND_VAR                                                     $5
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Function oneplustwobc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aKqim
function name:  onePlusTwoBC
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL_BY_NAME                                           'bcadd'
          1        SEND_VAL_EX                                                  '1'
          2        SEND_VAL_EX                                                  '2'
          3        DO_FCALL                                          0  $0      
          4        VERIFY_RETURN_TYPE                                           $0
          5      > RETURN                                                       $0
   12     6*       VERIFY_RETURN_TYPE                                           
          7*     > RETURN                                                       null

End of function oneplustwobc

Function oneplustwo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aKqim
function name:  onePlusTwo
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   VERIFY_RETURN_TYPE                                   ~0      3
          1      > RETURN                                                       ~0
   20     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function oneplustwo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
211.45 ms | 2360 KiB | 16 Q