3v4l.org

run code in 300+ PHP versions simultaneously
<?php print("Broken\n"); $paginate = [ 'limit' => 25 ]; print('Before: ' . print_r($paginate, true)); $paginate = [ 'contain' => [ 'Categories', 'Images' ] ]; print('After: ' . print_r($paginate, true)); print("Fixed\n"); $paginate = [ 'limit' => 25 ]; $paginate['contain'] = [ 'Categories', 'Images' ]; print('Fixed: ' . print_r($paginate, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f7k58
function name:  (null)
number of ops:  26
compiled vars:  !0 = $paginate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Broken%0A'
    4     1        ASSIGN                                                   !0, <array>
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      'Before%3A+', $2
          7        ECHO                                                     ~3
    6     8        ASSIGN                                                   !0, <array>
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      'After%3A+', $5
         14        ECHO                                                     ~6
    9    15        ECHO                                                     'Fixed%0A'
   10    16        ASSIGN                                                   !0, <array>
   11    17        ASSIGN_DIM                                               !0, 'contain'
         18        OP_DATA                                                  <array>
   12    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $9      
         23        CONCAT                                           ~10     'Fixed%3A+', $9
         24        ECHO                                                     ~10
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.37 ms | 1395 KiB | 15 Q