3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($x = 0; $x< 30; $x++){ unset($aDate); exec("date", $aDate); print("date(\"d.m.y H:i:s\") yields: ".date("d.m.y H:i:s")." while 'date' yields $aDate[0].\n"); sleep(1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 2
Branch analysis from position: 23
Branch analysis from position: 2
filename:       /in/XLHIG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $x, !1 = $aDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->21
    5     2    >   UNSET_CV                                                 !1
    6     3        INIT_FCALL                                               'exec'
          4        SEND_VAL                                                 'date'
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'd.m.y+H%3Ai%3As'
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      'date%28%22d.m.y+H%3Ai%3As%22%29+yields%3A+', $4
         11        ROPE_INIT                                     3  ~8      '+while+%27date%27+yields+'
         12        FETCH_DIM_R                                      ~6      !1, 0
         13        ROPE_ADD                                      1  ~8      ~8, ~6
         14        ROPE_END                                      2  ~7      ~8, '.%0A'
         15        CONCAT                                           ~10     ~5, ~7
         16        ECHO                                                     ~10
    8    17        INIT_FCALL                                               'sleep'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                                 
    3    20        PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 30
         22      > JMPNZ                                                    ~13, ->2
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.91 ms | 1395 KiB | 19 Q