3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page = 0; $num_of_posts = 6; $max_page = 10; $page = $page - floor($page/$max_page)*$max_page; echo $page;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BmDBp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $page, !1 = $num_of_posts, !2 = $max_page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 6
    5     2        ASSIGN                                                   !2, 10
    6     3        INIT_FCALL                                               'floor'
          4        DIV                                              ~6      !0, !2
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        MUL                                              ~8      !2, $7
          8        SUB                                              ~9      !0, ~8
          9        ASSIGN                                                   !0, ~9
    7    10        ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.66 ms | 1394 KiB | 15 Q