3v4l.org

run code in 300+ PHP versions simultaneously
<?php $age = 32; $birthday = new DateTime('2020-04-30'); $today = new DateTime(); if ($today > $birthday) { $age++; } echo "I'm " . $age . " years old";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/umFtI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $age, !1 = $birthday, !2 = $today
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 32
    4     1        NEW                                              $4      'DateTime'
          2        SEND_VAL_EX                                              '2020-04-30'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    5     5        NEW                                              $7      'DateTime'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !2, $7
    7     8        IS_SMALLER                                               !1, !2
          9      > JMPZ                                                     ~10, ->11
    8    10    >   PRE_INC                                                  !0
   11    11    >   CONCAT                                           ~12     'I%27m+', !0
         12        CONCAT                                           ~13     ~12, '+years+old'
         13        ECHO                                                     ~13
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.14 ms | 1397 KiB | 13 Q