3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); if ((new DateTimeImmutable())->modify('not a modifier') === false) { echo "invalid"; } if ((new DateTime())->modify('not a modifier') === false) { echo "invalid"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/sTN7A
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $0      'DateTimeImmutable'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'modify'
          3        SEND_VAL_EX                                              'not+a+modifier'
          4        DO_FCALL                                      0  $2      
          5        TYPE_CHECK                                    4          $2
          6      > JMPZ                                                     ~3, ->8
    4     7    >   ECHO                                                     'invalid'
    6     8    >   NEW                                              $4      'DateTime'
          9        DO_FCALL                                      0          
         10        INIT_METHOD_CALL                                         $4, 'modify'
         11        SEND_VAL_EX                                              'not+a+modifier'
         12        DO_FCALL                                      0  $6      
         13        TYPE_CHECK                                    4          $6
         14      > JMPZ                                                     ~7, ->16
    7    15    >   ECHO                                                     'invalid'
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.06 ms | 1398 KiB | 13 Q