3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000000; $i++) { $d1 = new DateTime("5 minutes ago"); $d2 = new DateTime("5 minutes ago"); if ($d1 != $d2) { echo "gotcha: {$d1->format("Y-m-d H:i:s")} vs {$d2->format("Y-m-d H:i:s")}\n"; } }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 2
Branch analysis from position: 27
Branch analysis from position: 2
Branch analysis from position: 24
filename:       /in/JV59e
function name:  (null)
number of ops:  28
compiled vars:  !0 = $i, !1 = $d1, !2 = $d2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
          1      > JMP                                                          ->25
    4     2    >   NEW                                                  $4      'DateTime'
          3        SEND_VAL_EX                                                  '5+minutes+ago'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !1, $4
    5     6        NEW                                                  $7      'DateTime'
          7        SEND_VAL_EX                                                  '5+minutes+ago'
          8        DO_FCALL                                          0          
          9        ASSIGN                                                       !2, $7
    6    10        IS_NOT_EQUAL                                                 !1, !2
         11      > JMPZ                                                         ~10, ->24
    7    12    >   ROPE_INIT                                         5  ~14     'gotcha%3A+'
         13        INIT_METHOD_CALL                                             !1, 'format'
         14        SEND_VAL_EX                                                  'Y-m-d+H%3Ai%3As'
         15        DO_FCALL                                          0  $11     
         16        ROPE_ADD                                          1  ~14     ~14, $11
         17        ROPE_ADD                                          2  ~14     ~14, '+vs+'
         18        INIT_METHOD_CALL                                             !2, 'format'
         19        SEND_VAL_EX                                                  'Y-m-d+H%3Ai%3As'
         20        DO_FCALL                                          0  $12     
         21        ROPE_ADD                                          3  ~14     ~14, $12
         22        ROPE_END                                          4  ~13     ~14, '%0A'
         23        ECHO                                                         ~13
    3    24    >   PRE_INC                                                      !0
         25    >   IS_SMALLER                                                   !0, 1000000
         26      > JMPNZ                                                        ~18, ->2
    9    27    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
194.03 ms | 7210 KiB | 13 Q