3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array('text' => ''); $values = array_values($var); var_dump($values); if (empty($values)) { echo "\nVazio"; } else { echo "Not vazio"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hrsbq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $var, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8        ISSET_ISEMPTY_CV                                         !1
          9      > JMPZ                                                     ~6, ->12
   10    10    >   ECHO                                                     '%0AVazio'
         11      > JMP                                                      ->13
   12    12    >   ECHO                                                     'Not+vazio'
   13    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.02 ms | 1386 KiB | 17 Q