3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = ['nome' => 'Paolo']; $default = ['nome' => '' ]; $_POST = array_replace( $default, $_POST ); $nome = $_POST['nome']; echo $nome;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sj53A
function name:  (null)
number of ops:  15
compiled vars:  !0 = $default, !1 = $nome
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      '_POST'
          1        ASSIGN                                                   $2, <array>
    5     2        ASSIGN                                                   !0, <array>
    7     3        INIT_FCALL                                               'array_replace'
          4        SEND_VAR                                                 !0
          5        FETCH_R                      global              ~6      '_POST'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        FETCH_W                      global              $5      '_POST'
          9        ASSIGN                                                   $5, $7
    9    10        FETCH_R                      global              ~9      '_POST'
         11        FETCH_DIM_R                                      ~10     ~9, 'nome'
         12        ASSIGN                                                   !1, ~10
   11    13        ECHO                                                     !1
   12    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.19 ms | 1394 KiB | 15 Q