3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textData = <<<_TEXT 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 192.168.0.8 192.168.0.9 _TEXT; $json = json_encode(explode(PHP_EOL, $textData), JSON_FORCE_OBJECT | JSON_PRETTY_PRINT); echo $json;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BrOSK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $textData, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '192.168.0.1%0A192.168.0.2%0A192.168.0.3%0A192.168.0.4%0A192.168.0.5%0A192.168.0.6%0A192.168.0.7%0A192.168.0.8%0A192.168.0.9'
   15     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        SEND_VAL                                                 144
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
   17    10        ECHO                                                     !1
   18    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.75 ms | 999 KiB | 15 Q