3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts1 = '5-20-13'; $ts2 = '20-5-2013'; var_dump(date('r', strtotime($ts1))); var_dump(date('r', strtotime($ts2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Dnu8
function name:  (null)
number of ops:  23
compiled vars:  !0 = $ts1, !1 = $ts2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '5-20-13'
    3     1        ASSIGN                                                   !1, '20-5-2013'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'r'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'r'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.89 ms | 1395 KiB | 19 Q