3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=trim(null); if ($a===null) echo "NULL"; else echo "--$a--";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ImpB6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'trim'
          1        SEND_VAL                                                 null
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        TYPE_CHECK                                    2          !0
          5      > JMPZ                                                     ~3, ->8
          6    >   ECHO                                                     'NULL'
          7      > JMP                                                      ->12
          8    >   ROPE_INIT                                     3  ~5      '--'
          9        ROPE_ADD                                      1  ~5      ~5, !0
         10        ROPE_END                                      2  ~4      ~5, '--'
         11        ECHO                                                     ~4
         12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.88 ms | 1394 KiB | 15 Q