3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace test; $start = microtime(true); for($i = 0; $i < 100000; ++$i){ strlen(null . null . null . null . null . null . null . null . null . null . null . null); } echo microtime(true) - $start, PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/Q9YVR
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'test%5Cmicrotime'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    8     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    9     6    >   INIT_NS_FCALL_BY_NAME                                    'test%5Cstrlen'
          7        SEND_VAL_EX                                              ''
          8        DO_FCALL                                      0          
    8     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 100000
         11      > JMPNZ                                                    ~7, ->6
   12    12    >   INIT_NS_FCALL_BY_NAME                                    'test%5Cmicrotime'
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0  $8      
         15        SUB                                              ~9      $8, !0
         16        ECHO                                                     ~9
         17        FETCH_CONSTANT                                   ~10     'test%5CPHP_EOL'
         18        ECHO                                                     ~10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.93 ms | 1386 KiB | 17 Q