3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = strtotime("now"); $b = (new DateTime())->getTimestamp(); echo $a . "\n"; echo $b . "\n"; echo ($a - $b) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5KAFo
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $4      'DateTime'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $4, 'getTimestamp'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
    5     9        CONCAT                                           ~8      !0, '%0A'
         10        ECHO                                                     ~8
    6    11        CONCAT                                           ~9      !1, '%0A'
         12        ECHO                                                     ~9
    7    13        SUB                                              ~10     !0, !1
         14        CONCAT                                           ~11     ~10, '%0A'
         15        ECHO                                                     ~11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.64 ms | 1394 KiB | 15 Q