3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 2; $dt = DateTime::createFromFormat('!m', $month); echo $dt->format('F'); // March ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jj0YZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $month, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 '%21m'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_METHOD_CALL                                         !1, 'format'
          7        SEND_VAL_EX                                              'F'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.5 ms | 1392 KiB | 13 Q