3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('name' => 'Надя', 'thief' => false), array('name' => 'Даша', 'thief' => false), array('name' => 'Алла', 'thief' => true), ); $arrayWithKeys = array( 0 => array('name' => 'Надя', 'thief' => false), 2 => array('name' => 'Даша', 'thief' => false), 3 => array('name' => 'Алла', 'thief' => true), ); echo json_encode($array)."\r\n"; echo json_encode($arrayWithKeys);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QHdlT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $arrayWithKeys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        CONCAT                                           ~5      $4, '%0D%0A'
          6        ECHO                                                     ~5
   14     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.9 ms | 1394 KiB | 15 Q