3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = $x[1] ?? 10; list($a, $b) = [1, 2]; function a($x = 10) { echo $x; } a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/770jj
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $x, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_DIM_IS                                     ~3      !1, 1
          1        COALESCE                                         ~4      ~3
          2        QM_ASSIGN                                        ~4      10
          3        ASSIGN                                                   !0, ~4
    6     4        FETCH_LIST_R                                     $6      <array>, 0
          5        ASSIGN                                                   !0, $6
          6        FETCH_LIST_R                                     $8      <array>, 1
          7        ASSIGN                                                   !2, $8
   13     8        INIT_FCALL                                               'a'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/770jj
function name:  a
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      10
   10     1        ECHO                                                     !0
   11     2      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.03 ms | 1397 KiB | 14 Q