3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1,1000) as $int) { echo "{$int}: " . (base64_decode(trim('=', base64_encode($int))) === $int ? 'Pass' : 'Fail') . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/5fPIT
function name:  (null)
number of ops:  29
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1000
          3        DO_ICALL                                         $1      
          4      > FE_RESET_R                                       $2      $1, ->27
          5    > > FE_FETCH_R                                               $2, !0, ->27
    3     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~3      !0, '%3A+'
          8        INIT_FCALL                                               'base64_decode'
          9        INIT_FCALL                                               'trim'
         10        SEND_VAL                                                 '%3D'
         11        INIT_FCALL                                               'base64_encode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                         $6      
         18        IS_IDENTICAL                                             !0, $6
         19      > JMPZ                                                     ~7, ->22
         20    >   QM_ASSIGN                                        ~8      'Pass'
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~8      'Fail'
         23    >   CONCAT                                           ~9      ~3, ~8
         24        CONCAT                                           ~10     ~9, '%0A'
         25        ECHO                                                     ~10
    2    26      > JMP                                                      ->5
         27    >   FE_FREE                                                  $2
    5    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.42 ms | 1396 KiB | 21 Q