3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getNumber() : int { return 3; } function getFunctionName() : string { return 'var_dump'; } function getBullshit() : string { return 'bullshit'; } var_dump(getNumber()/2); getFunctionName()(getNumber()/2); getBullshit()(getNumber()/2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nR66q
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'getnumber'
          2        DO_FCALL                                      0  $0      
          3        DIV                                              ~1      $0, 2
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
   19     6        INIT_FCALL                                               'getfunctionname'
          7        DO_FCALL                                      0  $3      
          8        INIT_DYNAMIC_CALL                                        $3
          9        INIT_FCALL                                               'getnumber'
         10        DO_FCALL                                      0  $4      
         11        DIV                                              ~5      $4, 2
         12        SEND_VAL_EX                                              ~5
         13        DO_FCALL                                      0          
   20    14        INIT_FCALL                                               'getbullshit'
         15        DO_FCALL                                      0  $7      
         16        INIT_DYNAMIC_CALL                                        $7
         17        INIT_FCALL                                               'getnumber'
         18        DO_FCALL                                      0  $8      
         19        DIV                                              ~9      $8, 2
         20        SEND_VAL_EX                                              ~9
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

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

End of function getnumber

Function getfunctionname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nR66q
function name:  getFunctionName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   'var_dump'
   11     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function getfunctionname

Function getbullshit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nR66q
function name:  getBullshit
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   'bullshit'
   16     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of function getbullshit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.6 ms | 1005 KiB | 19 Q