3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1] = "-00010.1"; if('-'==($_=$argv[1])[0])$s=1||$_[0]=0; echo '-'==($_=$argv[1])[0]?0&$s=1||$_[0]=0:''; exit; print $_; print $s; exit;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
filename:       /in/vBRcE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $argv, !1 = $_, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  '-00010.1'
    5     2        FETCH_DIM_R                                      ~4      !0, 1
          3        ASSIGN                                           ~5      !1, ~4
          4        FETCH_DIM_R                                      ~6      ~5, 0
          5        IS_EQUAL                                                 ~6, '-'
          6      > JMPZ                                                     ~7, ->8
          7    >   ASSIGN                                                   !2, <true>
    7     8    >   FETCH_DIM_R                                      ~9      !0, 1
          9        ASSIGN                                           ~10     !1, ~9
         10        FETCH_DIM_R                                      ~11     ~10, 0
         11        IS_EQUAL                                                 ~11, '-'
         12      > JMPZ                                                     ~12, ->17
         13    >   ASSIGN                                           ~13     !2, <true>
         14        BW_AND                                           ~14     ~13, 0
         15        QM_ASSIGN                                        ~15     ~14
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~15     ''
         18    >   ECHO                                                     ~15
    8    19      > EXIT                                                     
    9    20*       ECHO                                                     !1
   10    21*       ECHO                                                     !2
   11    22*       EXIT                                                     
         23*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.23 ms | 1394 KiB | 13 Q