3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"ClientData":[{"firstName":"Master","lastName":"Tester","email":"me@me.com","dob":"1973-01-22","age":"51","pierceType":"Vici","street":"number of house","city":"here","county":"there","postcode":"everywhere"}],"HealthData":[["condtion : Prone to Fainting / Dizziness","condtion : Allergic Response to Plasters","condtion : Prone to Fainting / Dizziness"]],"PiercerData":[{"firstName":"Male","lastName":"checking","pierceDate":"2013-02-25","jewelleryType":"Vici","jewelleryDesign":"Vidi","jewellerySize":"Vici","idChecked":null,"medicalChecked":null,"notes":"This is for more info"}]}'; $json = jsos_decode($string); foreach($json AS $array) { foreach($array AS $key => $value) { echo $key . " : " . $value . "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Z7dCa
function name:  (null)
number of ops:  19
compiled vars:  !0 = $string, !1 = $json, !2 = $array, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22ClientData%22%3A%5B%7B%22firstName%22%3A%22Master%22%2C%22lastName%22%3A%22Tester%22%2C%22email%22%3A%22me%40me.com%22%2C%22dob%22%3A%221973-01-22%22%2C%22age%22%3A%2251%22%2C%22pierceType%22%3A%22Vici%22%2C%22street%22%3A%22number+of+house%22%2C%22city%22%3A%22here%22%2C%22county%22%3A%22there%22%2C%22postcode%22%3A%22everywhere%22%7D%5D%2C%22HealthData%22%3A%5B%5B%22condtion+%3A+Prone+to+Fainting+%2F+Dizziness%22%2C%22condtion+%3A+Allergic+Response+to+Plasters%22%2C%22condtion+%3A+Prone+to+Fainting+%2F+Dizziness%22%5D%5D%2C%22PiercerData%22%3A%5B%7B%22firstName%22%3A%22Male%22%2C%22lastName%22%3A%22checking%22%2C%22pierceDate%22%3A%222013-02-25%22%2C%22jewelleryType%22%3A%22Vici%22%2C%22jewelleryDesign%22%3A%22Vidi%22%2C%22jewellerySize%22%3A%22Vici%22%2C%22idChecked%22%3Anull%2C%22medicalChecked%22%3Anull%2C%22notes%22%3A%22This+is+for+more+info%22%7D%5D%7D'
    4     1        INIT_FCALL_BY_NAME                                       'jsos_decode'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $6      
          4        ASSIGN                                                   !1, $6
    6     5      > FE_RESET_R                                       $8      !1, ->17
          6    > > FE_FETCH_R                                               $8, !2, ->17
    7     7    > > FE_RESET_R                                       $9      !2, ->15
          8    > > FE_FETCH_R                                       ~10     $9, !3, ->15
          9    >   ASSIGN                                                   !4, ~10
    8    10        CONCAT                                           ~12     !4, '+%3A+'
         11        CONCAT                                           ~13     ~12, !3
         12        CONCAT                                           ~14     ~13, '%0A'
         13        ECHO                                                     ~14
    7    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $9
    6    16      > JMP                                                      ->6
         17    >   FE_FREE                                                  $8
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1386 KiB | 13 Q