3v4l.org

run code in 500+ PHP versions simultaneously
<?php // min() / max() with two arguments, tie and NAN cases var_dump(max(0.0, NAN), max(NAN, 0.0), min(0.0, NAN), min(NAN, 0.0)); var_dump(min(0, 0.0), max(0, 0.0), max(0.0, 0), min(0.0, 0)); // the same through the function (not the frameless call on PHP 8.4+) var_dump(call_user_func('max', 0.0, NAN), call_user_func('max', NAN, 0.0)); var_dump(call_user_func('min', 0.0, NAN), call_user_func('min', NAN, 0.0)); var_dump(call_user_func('min', 0, 0.0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tVFpJ
function name:  (null)
number of ops:  52
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'var_dump'
          1        FRAMELESS_ICALL_2                max                 ~0      0, NAN
          2        SEND_VAL                                                     ~0
          3        FRAMELESS_ICALL_2                max                 ~1      NAN, 0
          4        SEND_VAL                                                     ~1
          5        FRAMELESS_ICALL_2                min                 ~2      0, NAN
          6        SEND_VAL                                                     ~2
          7        FRAMELESS_ICALL_2                min                 ~3      NAN, 0
          8        SEND_VAL                                                     ~3
          9        DO_ICALL                                                     
    5    10        INIT_FCALL                                                   'var_dump'
         11        FRAMELESS_ICALL_2                min                 ~5      0, 0
         12        SEND_VAL                                                     ~5
         13        FRAMELESS_ICALL_2                max                 ~6      0, 0
         14        SEND_VAL                                                     ~6
         15        FRAMELESS_ICALL_2                max                 ~7      0, 0
         16        SEND_VAL                                                     ~7
         17        FRAMELESS_ICALL_2                min                 ~8      0, 0
         18        SEND_VAL                                                     ~8
         19        DO_ICALL                                                     
    8    20        INIT_FCALL                                                   'var_dump'
         21        INIT_FCALL                                                   'max'
         22        SEND_USER                                                    0
         23        SEND_USER                                                    NAN
         24        DO_FCALL                                          0  $10     
         25        SEND_VAR                                                     $10
         26        INIT_FCALL                                                   'max'
         27        SEND_USER                                                    NAN
         28        SEND_USER                                                    0
         29        DO_FCALL                                          0  $11     
         30        SEND_VAR                                                     $11
         31        DO_ICALL                                                     
    9    32        INIT_FCALL                                                   'var_dump'
         33        INIT_FCALL                                                   'min'
         34        SEND_USER                                                    0
         35        SEND_USER                                                    NAN
         36        DO_FCALL                                          0  $13     
         37        SEND_VAR                                                     $13
         38        INIT_FCALL                                                   'min'
         39        SEND_USER                                                    NAN
         40        SEND_USER                                                    0
         41        DO_FCALL                                          0  $14     
         42        SEND_VAR                                                     $14
         43        DO_ICALL                                                     
   10    44        INIT_FCALL                                                   'var_dump'
         45        INIT_FCALL                                                   'min'
         46        SEND_USER                                                    0
         47        SEND_USER                                                    0
         48        DO_FCALL                                          0  $16     
         49        SEND_VAR                                                     $16
         50        DO_ICALL                                                     
         51      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
141.51 ms | 499 KiB | 12 Q