3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = md5('hello'); For($i = 0; $i < 1000000; $i++) { ctype_digit($value); } For($i = 0; $i < 1000000; $i++) { ctype_digit("$i"); }
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 = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 14
Branch analysis from position: 21
Branch analysis from position: 14
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/ZEYbg
function name:  (null)
number of ops:  22
compiled vars:  !0 = $value, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'hello'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    5     6    >   INIT_FCALL                                               'ctype_digit'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    4     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 1000000
         11      > JMPNZ                                                    ~7, ->6
    7    12    >   ASSIGN                                                   !1, 0
         13      > JMP                                                      ->19
    8    14    >   INIT_FCALL                                               'ctype_digit'
         15        CAST                                          6  ~9      !1
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
    7    18        PRE_INC                                                  !1
         19    >   IS_SMALLER                                               !1, 1000000
         20      > JMPNZ                                                    ~12, ->14
    9    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.07 ms | 1395 KiB | 17 Q