3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '02-24-2014'; echo (new \DateTime("".$d.""))->format('m-d-Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9F81Y
function name:  (null)
number of ops:  11
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '02-24-2014'
    3     1        NEW                                              $2      'DateTime'
          2        CONCAT                                           ~3      '', !0
          3        CONCAT                                           ~4      ~3, ''
          4        SEND_VAL_EX                                              ~4
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $2, 'format'
          7        SEND_VAL_EX                                              'm-d-Y'
          8        DO_FCALL                                      0  $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.15 ms | 1392 KiB | 13 Q