3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myFunction($arg1 = '', $arg2 = '') { return 'My args: ' . $arg1 . ' & ' . $arg2; } $arg1 = "foo"; $result = myFunction($arg1, $arg2); var_dump($result === 'My args: ' . $arg1 . ' & ' . $arg2); $arg1 = "foo"; $arg2 = "bar"; $result = myFunction($arg1, $arg2); var_dump($result === 'My args: ' . $arg1 . ' & ' . $arg2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tPV9G
function name:  (null)
number of ops:  28
compiled vars:  !0 = $arg1, !1 = $result, !2 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'foo'
    7     1        INIT_FCALL                                               'myfunction'
          2        SEND_VAR                                                 !0
          3        SEND_VAR                                                 !2
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
    8     6        INIT_FCALL                                               'var_dump'
          7        CONCAT                                           ~6      'My+args%3A+', !0
          8        CONCAT                                           ~7      ~6, '+%26+'
          9        CONCAT                                           ~8      ~7, !2
         10        IS_IDENTICAL                                     ~9      !1, ~8
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
   10    13        ASSIGN                                                   !0, 'foo'
   11    14        ASSIGN                                                   !2, 'bar'
   12    15        INIT_FCALL                                               'myfunction'
         16        SEND_VAR                                                 !0
         17        SEND_VAR                                                 !2
         18        DO_FCALL                                      0  $13     
         19        ASSIGN                                                   !1, $13
   13    20        INIT_FCALL                                               'var_dump'
         21        CONCAT                                           ~15     'My+args%3A+', !0
         22        CONCAT                                           ~16     ~15, '+%26+'
         23        CONCAT                                           ~17     ~16, !2
         24        IS_IDENTICAL                                     ~18     !1, ~17
         25        SEND_VAL                                                 ~18
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tPV9G
function name:  myFunction
number of ops:  7
compiled vars:  !0 = $arg1, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      ''
          1        RECV_INIT                                        !1      ''
    3     2        CONCAT                                           ~2      'My+args%3A+', !0
          3        CONCAT                                           ~3      ~2, '+%26+'
          4        CONCAT                                           ~4      ~3, !1
          5      > RETURN                                                   ~4
    4     6*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.46 ms | 944 KiB | 18 Q