3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array( random_int(1, 2.0), random_int(1, 1.0), random_int(-1, "2"), random_int(-1, "3.1"), random_int(-2.0, 5), random_int(1.0, 5), random_int("-2", 5), random_int("3.1", 5), ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/svgdh
function name:  (null)
number of ops:  44
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
    3     1        INIT_FCALL                                               'random_int'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $0      
          5        INIT_ARRAY                                       ~1      $0
    4     6        INIT_FCALL                                               'random_int'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $2      
         10        ADD_ARRAY_ELEMENT                                ~1      $2
    5    11        INIT_FCALL                                               'random_int'
         12        SEND_VAL                                                 -1
         13        SEND_VAL                                                 '2'
         14        DO_ICALL                                         $3      
         15        ADD_ARRAY_ELEMENT                                ~1      $3
    6    16        INIT_FCALL                                               'random_int'
         17        SEND_VAL                                                 -1
         18        SEND_VAL                                                 '3.1'
         19        DO_ICALL                                         $4      
         20        ADD_ARRAY_ELEMENT                                ~1      $4
    7    21        INIT_FCALL                                               'random_int'
         22        SEND_VAL                                                 -2
         23        SEND_VAL                                                 5
         24        DO_ICALL                                         $5      
         25        ADD_ARRAY_ELEMENT                                ~1      $5
    8    26        INIT_FCALL                                               'random_int'
         27        SEND_VAL                                                 1
         28        SEND_VAL                                                 5
         29        DO_ICALL                                         $6      
         30        ADD_ARRAY_ELEMENT                                ~1      $6
    9    31        INIT_FCALL                                               'random_int'
         32        SEND_VAL                                                 '-2'
         33        SEND_VAL                                                 5
         34        DO_ICALL                                         $7      
         35        ADD_ARRAY_ELEMENT                                ~1      $7
   10    36        INIT_FCALL                                               'random_int'
         37        SEND_VAL                                                 '3.1'
         38        SEND_VAL                                                 5
         39        DO_ICALL                                         $8      
         40        ADD_ARRAY_ELEMENT                                ~1      $8
         41        SEND_VAL                                                 ~1
    2    42        DO_ICALL                                                 
   11    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.8 ms | 1461 KiB | 15 Q