3v4l.org

run code in 500+ PHP versions simultaneously
<?php $theDate = '21 June, 2016'; $dt = new DateTime( $theDate ); $myDate = $dt->format('Y-m-d'); var_dump( json_decode($myDate, true) ); echo json_last_error_msg();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BFvHD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $theDate, !1 = $dt, !2 = $myDate
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '21+June%2C+2016'
    3     1        NEW                                                  $4      'DateTime'
          2        SEND_VAR_EX                                                  !0
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !1, $4
    4     5        INIT_METHOD_CALL                                             !1, 'format'
          6        SEND_VAL_EX                                                  'Y-m-d'
          7        DO_FCALL                                          0  $7      
          8        ASSIGN                                                       !2, $7
    5     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'json_decode'
         11        SEND_VAR                                                     !2
         12        SEND_VAL                                                     <true>
         13        DO_ICALL                                             $9      
         14        SEND_VAR                                                     $9
         15        DO_ICALL                                                     
    6    16        INIT_FCALL                                                   'json_last_error_msg'
         17        DO_ICALL                                             $11     
         18        ECHO                                                         $11
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.82 ms | 2876 KiB | 16 Q