3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode([name=>1,name=>2,name=>3,name=>4,name=>5]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QFpD
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        FETCH_CONSTANT                                   ~0      'name'
          2        INIT_ARRAY                                       ~1      1, ~0
          3        FETCH_CONSTANT                                   ~2      'name'
          4        ADD_ARRAY_ELEMENT                                ~1      2, ~2
          5        FETCH_CONSTANT                                   ~3      'name'
          6        ADD_ARRAY_ELEMENT                                ~1      3, ~3
          7        FETCH_CONSTANT                                   ~4      'name'
          8        ADD_ARRAY_ELEMENT                                ~1      4, ~4
          9        FETCH_CONSTANT                                   ~5      'name'
         10        ADD_ARRAY_ELEMENT                                ~1      5, ~5
         11        SEND_VAL                                                 ~1
         12        DO_ICALL                                         $6      
         13        ECHO                                                     $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.94 ms | 1394 KiB | 15 Q