3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = hello; $image = $image == '' ? 'NULL' : "'" . $image . "'"; echo('soy yo '); echo($image);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MN2dk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~1      'hello'
          1        ASSIGN                                                   !0, ~1
    3     2        IS_EQUAL                                                 !0, ''
          3      > JMPZ                                                     ~3, ->6
          4    >   QM_ASSIGN                                        ~4      'NULL'
          5      > JMP                                                      ->9
          6    >   CONCAT                                           ~5      '%27', !0
          7        CONCAT                                           ~6      ~5, '%27'
          8        QM_ASSIGN                                        ~4      ~6
          9    >   ASSIGN                                                   !0, ~4
    4    10        ECHO                                                     'soy+yo+'
    5    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1393 KiB | 13 Q