3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get(){ return '3'; }; var_dump(array( get(), (int)get(), intval(get()) ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cUqVA
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
    8     1        INIT_FCALL                                               'get'
          2        DO_FCALL                                      0  $0      
          3        INIT_ARRAY                                       ~1      $0
    9     4        INIT_FCALL                                               'get'
          5        DO_FCALL                                      0  $2      
          6        CAST                                          4  ~3      $2
          7        ADD_ARRAY_ELEMENT                                ~1      ~3
   10     8        INIT_FCALL                                               'get'
          9        DO_FCALL                                      0  $4      
         10        CAST                                          4  ~5      $4
         11        ADD_ARRAY_ELEMENT                                ~1      ~5
         12        SEND_VAL                                                 ~1
    7    13        DO_ICALL                                                 
   11    14      > RETURN                                                   1

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

End of function get

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1012 KiB | 17 Q