3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n"; $a = base64_encode('1 hi all!'); var_dump((int)base64_decode($a)); echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n"; var_dump((int) '1 hi all!');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dAvUu
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '%0Ait%27s+wrong+%28string%29%601+hi+all%21%60+%21%3D%3D+%28int%29%601%60%0A'
    6     1        INIT_FCALL                                               'base64_encode'
          2        SEND_VAL                                                 '1+hi+all%21'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'base64_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        CAST                                          4  ~4      $3
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
   10    12        ECHO                                                     '%0Ait%27s+wrong+%28string%29%601+hi+all%21%60+%21%3D%3D+%28int%29%601%60%0A'
   11    13        INIT_FCALL                                               'var_dump'
         14        CAST                                          4  ~6      '1+hi+all%21'
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.04 ms | 1001 KiB | 16 Q