3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((boolean)(new DateTime())->format('L')); var_dump((boolean)(new DateTime('2016-01-01'))->format('L'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/63ulP
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTime'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'format'
          4        SEND_VAL_EX                                              'L'
          5        DO_FCALL                                      0  $2      
          6        BOOL                                             ~3      $2
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        NEW                                              $5      'DateTime'
         11        SEND_VAL_EX                                              '2016-01-01'
         12        DO_FCALL                                      0          
         13        INIT_METHOD_CALL                                         $5, 'format'
         14        SEND_VAL_EX                                              'L'
         15        DO_FCALL                                      0  $7      
         16        BOOL                                             ~8      $7
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.31 ms | 1399 KiB | 15 Q