3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = rand(1000, 9999) . '2'; var_dump($id); var_dump(crc32($id)); var_dump(crc32($id) % 5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OtlTl
function name:  (null)
number of ops:  23
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 1000
          2        SEND_VAL                                                 9999
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      $1, '2'
          5        ASSIGN                                                   !0, ~2
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'crc32'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'crc32'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        MOD                                              ~8      $7, 5
         20        SEND_VAL                                                 ~8
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.4 ms | 1395 KiB | 19 Q