3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/59c7R
function name:  foo
number of ops:  7
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    6     6      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.25 ms | 1397 KiB | 17 Q