3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 0; $output = null; for ($i = 100; $i < 10000; $i++ ) { for ($j = 100; $j < 10000; $j++) { $mul = $i*$j; if ($mul == strrev($mul) && $mul > $max) { $max = $mul; } } } echo "$max\n";
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 = 4
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 4
Branch analysis from position: 23
Branch analysis from position: 4
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
Branch analysis from position: 17
Branch analysis from position: 15
filename:       /in/E2qsQ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $max, !1 = $output, !2 = $i, !3 = $j, !4 = $mul
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        ASSIGN                                                   !1, null
    6     2        ASSIGN                                                   !2, 100
          3      > JMP                                                      ->21
    7     4    >   ASSIGN                                                   !3, 100
          5      > JMP                                                      ->18
    8     6    >   MUL                                              ~9      !2, !3
          7        ASSIGN                                                   !4, ~9
    9     8        INIT_FCALL                                               'strrev'
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                         $11     
         11        IS_EQUAL                                         ~12     !4, $11
         12      > JMPZ_EX                                          ~12     ~12, ->15
         13    >   IS_SMALLER                                       ~13     !0, !4
         14        BOOL                                             ~12     ~13
         15    > > JMPZ                                                     ~12, ->17
   10    16    >   ASSIGN                                                   !0, !4
    7    17    >   PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 10000
         19      > JMPNZ                                                    ~16, ->6
    6    20    >   PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 10000
         22      > JMPNZ                                                    ~18, ->4
   15    23    >   NOP                                                      
         24        FAST_CONCAT                                      ~19     !0, '%0A'
         25        ECHO                                                     ~19
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.75 ms | 1396 KiB | 15 Q