3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo 1_2_3; $a = '1_2_3'; // warning: a non-numeric value encountered echo $a + 0; // 1 echo (int) $a; // 1 $int = eval("return $a;");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LYF7R
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $int
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         123
    5     1        ASSIGN                                                       !0, '1_2_3'
    8     2        ADD                                                  ~3      !0, 0
          3        ECHO                                                         ~3
    9     4        CAST                                              4  ~4      !0
          5        ECHO                                                         ~4
   10     6        ROPE_INIT                                         3  ~6      'return+'
          7        ROPE_ADD                                          1  ~6      ~6, !0
          8        ROPE_END                                          2  ~5      ~6, '%3B'
          9        INCLUDE_OR_EVAL                                      $8      ~5, EVAL
         10        ASSIGN                                                       !1, $8
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.15 ms | 1404 KiB | 13 Q