3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "\x34\x32\x2E"; echo $a."\n"; echo strlen($a)."\n"; var_dump($a=="42")."\n"; $b = '\x34\x32\x2E'; echo $b."\n"; echo strlen($b)."\n"; var_dump($b=="42")."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jYSpC
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '42.'
    4     1        CONCAT                                           ~3      !0, '%0A'
          2        ECHO                                                     ~3
    5     3        STRLEN                                           ~4      !0
          4        CONCAT                                           ~5      ~4, '%0A'
          5        ECHO                                                     ~5
    6     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~6      !0, '42'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        CONCAT                                           ~8      $7, '%0A'
         11        FREE                                                     ~8
    8    12        ASSIGN                                                   !1, '%5Cx34%5Cx32%5Cx2E'
    9    13        CONCAT                                           ~10     !1, '%0A'
         14        ECHO                                                     ~10
   10    15        STRLEN                                           ~11     !1
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
   11    18        INIT_FCALL                                               'var_dump'
         19        IS_EQUAL                                         ~13     !1, '42'
         20        SEND_VAL                                                 ~13
         21        DO_ICALL                                         $14     
         22        CONCAT                                           ~15     $14, '%0A'
         23        FREE                                                     ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.62 ms | 1436 KiB | 14 Q