3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = "25 august 2009"; $result = explode('',$date); var_dump($result); print_r($result); $my_date = date('Y/m/d', strtotime($date)); echo $my_date;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rg9pR
function name:  (null)
number of ops:  22
compiled vars:  !0 = $date, !1 = $result, !2 = $my_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '25+august+2009'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   11    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y%2Fm%2Fd'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !2, $9
   12    20        ECHO                                                     !2
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.4 ms | 1395 KiB | 23 Q