3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1393 KiB | 13 Q