3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'not empty'; var_dump(empty($id = $val)); var_dump($id); $val = null; var_dump(empty($id = $val)); var_dump($id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmliF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $val, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'not+empty'
    5     1        INIT_FCALL                                               'var_dump'
          2        ASSIGN                                           ~3      !1, !0
          3        BOOL_NOT                                         ~4      ~3
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    8     9        ASSIGN                                                   !0, null
   10    10        INIT_FCALL                                               'var_dump'
         11        ASSIGN                                           ~8      !1, !0
         12        BOOL_NOT                                         ~9      ~8
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.63 ms | 1394 KiB | 15 Q