3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.82 ms | 2217 KiB | 15 Q