3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = [ 'foo' => 'bar', 'baz' => 'qux', ]; echo json_encode($config); $new_config = '<?php $config = ' . var_export($config, true) . ';'; var_dump($new_config);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t1Ve7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $config, !1 = $new_config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ECHO                                                     $3
   10     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      '%3C%3Fphp+%24config+%3D+', $4
         10        CONCAT                                           ~6      ~5, '%3B'
         11        ASSIGN                                                   !1, ~6
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.77 ms | 1394 KiB | 19 Q