3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($b, $c) { $arr = array($b, $c); $e = new Exception(); $t = $e->getTrace(); $arr2 = $arr; var_dump($arr2); var_dump($t); } a(2, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bAWBL
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 3
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bAWBL
function name:  a
number of ops:  19
compiled vars:  !0 = $b, !1 = $c, !2 = $arr, !3 = $e, !4 = $t, !5 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_ARRAY                                       ~6      !0
          3        ADD_ARRAY_ELEMENT                                ~6      !1
          4        ASSIGN                                                   !2, ~6
    5     5        NEW                                              $8      'Exception'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !3, $8
    6     8        INIT_METHOD_CALL                                         !3, 'getTrace'
          9        DO_FCALL                                      0  $11     
         10        ASSIGN                                                   !4, $11
    7    11        ASSIGN                                                   !5, !2
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !5
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                                 
   11    18      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.35 ms | 1401 KiB | 17 Q