3v4l.org

run code in 500+ PHP versions simultaneously
<?php $three = +-+3; // -3 $three = -+-3; // 3 $four = -+-+4; // 4 $four = -+-+4; // 4 var_dump(+0 === -0); var_dump((int) '+-+3'); var_dump(is_numeric('+-+3'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HU2ub
function name:  (null)
number of ops:  16
compiled vars:  !0 = $three, !1 = $four
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, -3
    4     1        ASSIGN                                                       !0, 3
    6     2        ASSIGN                                                       !1, 4
    7     3        ASSIGN                                                       !1, 4
    9     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAL                                                     <true>
          6        DO_ICALL                                                     
   11     7        INIT_FCALL                                                   'var_dump'
          8        CAST                                              4  ~7      '%2B-%2B3'
          9        SEND_VAL                                                     ~7
         10        DO_ICALL                                                     
   13    11        INIT_FCALL                                                   'var_dump'
         12        FRAMELESS_ICALL_1                is_numeric          ~9      '%2B-%2B3'
         13        SEND_VAL                                                     ~9
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
136.89 ms | 1112 KiB | 14 Q