3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = strtotime('Sun, 10 Mar 2024 00:00:00 +0000'); var_dump($a); $b = new \DateTime('@'.$a); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JP0R2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'Sun%2C+10+Mar+2024+00%3A00%3A00+%2B0000'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        NEW                                              $5      'DateTime'
          8        CONCAT                                           ~6      '%40', !0
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $5
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.8 ms | 1432 KiB | 15 Q