3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $count = 138; $interval = floor($count / 5); $images = range(1, $count, $interval); $pattern = '{' . implode(',', $images) . '}'; print_r();
based on h4B5G
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/3Flbi
function name:  (null)
number of ops:  22
compiled vars:  !0 = $count, !1 = $interval, !2 = $images, !3 = $pattern
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 138
   4     1        INIT_FCALL                                               'floor'
         2        DIV                                              ~5      !0, 5
         3        SEND_VAL                                                 ~5
         4        DO_ICALL                                         $6      
         5        ASSIGN                                                   !1, $6
   6     6        INIT_FCALL                                               'range'
         7        SEND_VAL                                                 1
         8        SEND_VAR                                                 !0
         9        SEND_VAR                                                 !1
        10        DO_ICALL                                         $8      
        11        ASSIGN                                                   !2, $8
   8    12        INIT_FCALL                                               'implode'
        13        SEND_VAL                                                 '%2C'
        14        SEND_VAR                                                 !2
        15        DO_ICALL                                         $10     
        16        CONCAT                                           ~11     '%7B', $10
        17        CONCAT                                           ~12     ~11, '%7D'
        18        ASSIGN                                                   !3, ~12
  10    19        INIT_FCALL                                               'print_r'
        20        DO_ICALL                                                 
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0