3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dob = '1918-05-22'; $dob_time = strtotime($dob); $dob_formatted = date('Y-m-d', $dob_time); print $dob_formatted . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vrqmK
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dob, !1 = $dob_time, !2 = $dob_formatted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1918-05-22'
    5     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    7     5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'Y-m-d'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    9    10        CONCAT                                           ~8      !2, '%0A'
         11        ECHO                                                     ~8
   10    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.72 ms | 1394 KiB | 17 Q