3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '7.1'; $b = '7.1' . str_repeat('0', 14) . '1'; print "$a\n$b\n"; var_dump($a==$b); $b = '7.1' . str_repeat('0', 14) . '1'; print "$b\n"; var_dump($a==$b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s9BGE
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '7.1'
    3     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 '0'
          3        SEND_VAL                                                 14
          4        DO_ICALL                                         $3      
          5        CONCAT                                           ~4      '7.1', $3
          6        CONCAT                                           ~5      ~4, '1'
          7        ASSIGN                                                   !1, ~5
    4     8        ROPE_INIT                                     4  ~8      !0
          9        ROPE_ADD                                      1  ~8      ~8, '%0A'
         10        ROPE_ADD                                      2  ~8      ~8, !1
         11        ROPE_END                                      3  ~7      ~8, '%0A'
         12        ECHO                                                     ~7
    5    13        INIT_FCALL                                               'var_dump'
         14        IS_EQUAL                                         ~10     !0, !1
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'str_repeat'
         18        SEND_VAL                                                 '0'
         19        SEND_VAL                                                 14
         20        DO_ICALL                                         $12     
         21        CONCAT                                           ~13     '7.1', $12
         22        CONCAT                                           ~14     ~13, '1'
         23        ASSIGN                                                   !1, ~14
    7    24        NOP                                                      
         25        FAST_CONCAT                                      ~16     !1, '%0A'
         26        ECHO                                                     ~16
    8    27        INIT_FCALL                                               'var_dump'
         28        IS_EQUAL                                         ~17     !0, !1
         29        SEND_VAL                                                 ~17
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.2 ms | 1387 KiB | 17 Q