3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], ]; printf('var data = %s;', json_encode($data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aDRcX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 'var+data+%3D+%25s%3B'
          3        INIT_FCALL                                               'json_encode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.16 ms | 1394 KiB | 17 Q