3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<< EOT TW7 8PX TW14 8NU W3 7JW EOT; $output['postcodes'] = explode("\n", $input); echo json_encode($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ko9pn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'TW7+8PX%0ATW14+8NU%0AW3+7JW'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN_DIM                                               !1, 'postcodes'
          6        OP_DATA                                                  $4
   10     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1010 KiB | 15 Q