3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rounds = 100000; $voll = "inhalt"; $leer = ""; //$unset $start = microtime(true); for ($i = 0; $i < $rounds; ++$i) { empty($voll); } echo "Took me ".(microtime(true) - $start). "seconds";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/VYSXk
function name:  (null)
number of ops:  22
compiled vars:  !0 = $rounds, !1 = $voll, !2 = $leer, !3 = $start, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100000
    3     1        ASSIGN                                                   !1, 'inhalt'
    4     2        ASSIGN                                                   !2, ''
    7     3        INIT_FCALL                                               'microtime'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !3, $8
    8     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->12
    9     9    >   ISSET_ISEMPTY_CV                                 ~11     !1
         10        FREE                                                     ~11
    8    11        PRE_INC                                                  !4
         12    >   IS_SMALLER                                               !4, !0
         13      > JMPNZ                                                    ~13, ->9
   11    14    >   INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $14     
         17        SUB                                              ~15     $14, !3
         18        CONCAT                                           ~16     'Took+me+', ~15
         19        CONCAT                                           ~17     ~16, 'seconds'
         20        ECHO                                                     ~17
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.98 ms | 1399 KiB | 15 Q