3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'foo'; $c1 = eval('return (3 == $x);'); $c2 = eval('return ((((3 == $x))));'); $x1 = $c1(); $x2 = $c2(); $y1 = (3 == $x); $y2 = (((3 == $x)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JZChW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x, !1 = $c1, !2 = $c2, !3 = $x1, !4 = $x2, !5 = $y1, !6 = $y2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    5     1        INCLUDE_OR_EVAL                                  $8      'return+%283+%3D%3D+%24x%29%3B', EVAL
          2        ASSIGN                                                   !1, $8
    6     3        INCLUDE_OR_EVAL                                  $10     'return+%28%28%28%283+%3D%3D+%24x%29%29%29%29%3B', EVAL
          4        ASSIGN                                                   !2, $10
    8     5        INIT_DYNAMIC_CALL                                        !1
          6        DO_FCALL                                      0  $12     
          7        ASSIGN                                                   !3, $12
    9     8        INIT_DYNAMIC_CALL                                        !2
          9        DO_FCALL                                      0  $14     
         10        ASSIGN                                                   !4, $14
   11    11        IS_EQUAL                                         ~16     !0, 3
         12        ASSIGN                                                   !5, ~16
   12    13        IS_EQUAL                                         ~18     !0, 3
         14        ASSIGN                                                   !6, ~18
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.87 ms | 1393 KiB | 13 Q