3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='1.1.1'; #$a='123.81321321321.321321321321321'; if(preg_match("/^([0-9]+\.?[0-9]+)+$/",$a)){ $b=json_decode($a); # echo "DEBUG"; if($var = $b === NULL){ ($var===true)?$v3=1:NULL; } } echo $var; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 20
filename:       /in/utj3a
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $var, !3 = $v3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1.1.1'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5B0-9%5D%2B%5C.%3F%5B0-9%5D%2B%29%2B%24%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5      > JMPZ                                                     $5, ->20
    5     6    >   INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    7    10        TYPE_CHECK                                    2  ~8      !1
         11        ASSIGN                                           ~9      !2, ~8
         12      > JMPZ                                                     ~9, ->20
    8    13    >   TYPE_CHECK                                    8          !2
         14      > JMPZ                                                     ~10, ->18
         15    >   ASSIGN                                           ~11     !3, 1
         16        QM_ASSIGN                                        ~12     ~11
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~12     null
         19    >   FREE                                                     ~12
   11    20    >   ECHO                                                     !2
   12    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.38 ms | 1395 KiB | 17 Q