3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ✓ = true; const ✕ = false; function ≠($left, $right) { return $left != $right; } function ≅($left, $right) { return ($left > $right - 0.0001) && ($left < $right + 0.0001); } function ≡($left, $right) { return $left === $right; } function ≢($left, $right) { return $left !== $right; } $a = 1; $b = 2 - 1; echo ≡($a, $b)."\n"; echo ≅($a, $a + 0.001)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHBp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                            '%E2%9C%93', <true>
    5     1        DECLARE_CONST                                            '%E2%9C%95', <false>
   23     2        ASSIGN                                                   !0, 1
   25     3        ASSIGN                                                   !1, 1
   27     4        INIT_FCALL                                               '%E2%89%A1'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      $4, '%0A'
          9        ECHO                                                     ~5
   29    10        INIT_FCALL                                               '%E2%89%85'
         11        SEND_VAR                                                 !0
         12        ADD                                              ~6      !0, 0.001
         13        SEND_VAL                                                 ~6
         14        DO_FCALL                                      0  $7      
         15        CONCAT                                           ~8      $7, '%0A'
         16        ECHO                                                     ~8
         17      > RETURN                                                   1

Function %E2%89%A0:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHBp
function name:  ≠
number of ops:  5
compiled vars:  !0 = $left, !1 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        IS_NOT_EQUAL                                     ~2      !0, !1
          3      > RETURN                                                   ~2
    9     4*     > RETURN                                                   null

End of function %E2%89%A0

Function %E2%89%85:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/qSHBp
function name:  ≅
number of ops:  10
compiled vars:  !0 = $left, !1 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        SUB                                              ~2      !1, 0.0001
          3        IS_SMALLER                                       ~3      ~2, !0
          4      > JMPZ_EX                                          ~3      ~3, ->8
          5    >   ADD                                              ~4      !1, 0.0001
          6        IS_SMALLER                                       ~5      !0, ~4
          7        BOOL                                             ~3      ~5
          8    > > RETURN                                                   ~3
   13     9*     > RETURN                                                   null

End of function %E2%89%85

Function %E2%89%A1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHBp
function name:  ≡
number of ops:  5
compiled vars:  !0 = $left, !1 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   16     2        IS_IDENTICAL                                     ~2      !0, !1
          3      > RETURN                                                   ~2
   17     4*     > RETURN                                                   null

End of function %E2%89%A1

Function %E2%89%A2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSHBp
function name:  ≢
number of ops:  5
compiled vars:  !0 = $left, !1 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   20     2        IS_NOT_IDENTICAL                                 ~2      !0, !1
          3      > RETURN                                                   ~2
   21     4*     > RETURN                                                   null

End of function %E2%89%A2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1394 KiB | 15 Q