3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test_array=array(0 => "arr0", 1=> "arr1", 2=> "arr2"); $json_out = json_encode(array_values($test_array)); print_r($json_out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ofuW7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test_array, !1 = $json_out
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'json_encode'
          2        INIT_FCALL                                                   'array_values'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $3      
          5        SEND_VAR                                                     $3
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.05 ms | 3291 KiB | 16 Q