3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dob = \DateTimeImmutable::createFromString('now - 100 years')->setTime(0,0,0); $hundredYearsAgo = \DateTimeImmutable::createFromString('now - 100 years')->setTime(0,0,0); var_dump($dob); var_dump($hundredYearsAgo); var_dump($dob <= $hundredYearsAgo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/27VpY
function name:  (null)
number of ops:  29
compiled vars:  !0 = $dob, !1 = $hundredYearsAgo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromString'
          1        SEND_VAL_EX                                              'now+-+100+years'
          2        DO_FCALL                                      0  $2      
          3        INIT_METHOD_CALL                                         $2, 'setTime'
          4        SEND_VAL_EX                                              0
          5        SEND_VAL_EX                                              0
          6        SEND_VAL_EX                                              0
          7        DO_FCALL                                      0  $3      
          8        ASSIGN                                                   !0, $3
    4     9        INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromString'
         10        SEND_VAL_EX                                              'now+-+100+years'
         11        DO_FCALL                                      0  $5      
         12        INIT_METHOD_CALL                                         $5, 'setTime'
         13        SEND_VAL_EX                                              0
         14        SEND_VAL_EX                                              0
         15        SEND_VAL_EX                                              0
         16        DO_FCALL                                      0  $6      
         17        ASSIGN                                                   !1, $6
    6    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
   10    24        INIT_FCALL                                               'var_dump'
         25        IS_SMALLER_OR_EQUAL                              ~10     !0, !1
         26        SEND_VAL                                                 ~10
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.55 ms | 1395 KiB | 15 Q