3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf('%+d', intval('-10')); printf('%+d', intval('+10')); printf('%+d', intval('-qqq')); $a = sprintf('%+d', intval('+www')); var_dump($a > 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jebJc
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%25%2Bd'
          2        CAST                                          4  ~1      '-10'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'printf'
          6        SEND_VAL                                                 '%25%2Bd'
          7        CAST                                          4  ~3      '%2B10'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'printf'
         11        SEND_VAL                                                 '%25%2Bd'
         12        CAST                                          4  ~5      '-qqq'
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 '%25%2Bd'
         17        CAST                                          4  ~7      '%2Bwww'
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                         $8      
         20        ASSIGN                                                   !0, $8
    6    21        INIT_FCALL                                               'var_dump'
         22        IS_SMALLER                                       ~10     0, !0
         23        SEND_VAL                                                 ~10
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1395 KiB | 19 Q