3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Test page</title> </head> <body> <div id="message"> <p> <?php $lucky_year = (date('Y') == '2013') ? 'Yes it is my lucky year 2013!' : 'Darn.. it is '.date('Y').', but my lucky year is 2013.'; echo $lucky_year; ?> </p> </div> </body> </html>
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 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UuE1g
function name:  (null)
number of ops:  18
compiled vars:  !0 = $lucky_year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3ETest+page%3C%2Ftitle%3E%0A%3C%2Fhead%3E%0A%3Cbody%3E%0A%0A%3Cdiv+id%3D%22message%22%3E%0A%3Cp%3E%0A'
   10     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y'
          3        DO_ICALL                                         $1      
          4        IS_EQUAL                                                 $1, '2013'
          5      > JMPZ                                                     ~2, ->8
          6    >   QM_ASSIGN                                        ~3      'Yes+it+is+my+lucky+year+2013%21'
          7      > JMP                                                      ->14
          8    >   INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y'
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      'Darn..+it+is+', $4
         12        CONCAT                                           ~6      ~5, '%2C+but+my+lucky+year+is+2013.'
         13        QM_ASSIGN                                        ~3      ~6
         14    >   ASSIGN                                                   !0, ~3
   11    15        ECHO                                                     !0
   13    16        ECHO                                                     '%3C%2Fp%3E%0A%3C%2Fdiv%3E%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   17    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.35 ms | 1395 KiB | 15 Q