3v4l.org

run code in 300+ PHP versions simultaneously
<?php sleep(1); $value = 'index'; for ($i=0;$i<100000;$i++) { $action = ($value) ?: 'none'; $action = ($value) ?: 'none'; $action = ($value) ?: 'none'; $action = ($value) ?: 'none'; $action = ($value) ?: 'none'; } var_dump($action);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 6
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 6
Branch analysis from position: 24
Branch analysis from position: 6
filename:       /in/Vsbv8
function name:  (null)
number of ops:  28
compiled vars:  !0 = $value, !1 = $i, !2 = $action
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sleep'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, 'index'
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->22
    6     6    >   JMP_SET                                          ~6      !0, ->8
          7        QM_ASSIGN                                        ~6      'none'
          8        ASSIGN                                                   !2, ~6
    7     9        JMP_SET                                          ~8      !0, ->11
         10        QM_ASSIGN                                        ~8      'none'
         11        ASSIGN                                                   !2, ~8
    8    12        JMP_SET                                          ~10     !0, ->14
         13        QM_ASSIGN                                        ~10     'none'
         14        ASSIGN                                                   !2, ~10
    9    15        JMP_SET                                          ~12     !0, ->17
         16        QM_ASSIGN                                        ~12     'none'
         17        ASSIGN                                                   !2, ~12
   10    18        JMP_SET                                          ~14     !0, ->20
         19        QM_ASSIGN                                        ~14     'none'
         20        ASSIGN                                                   !2, ~14
    5    21        PRE_INC                                                  !1
         22    >   IS_SMALLER                                               !1, 100000
         23      > JMPNZ                                                    ~17, ->6
   13    24    >   INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.55 ms | 1395 KiB | 17 Q