3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yaml = <<<EOD --- invoice: 34843 date: "2001-01-23" bill-to: &id001 given: Chris family: Dumars address: lines: |- 458 Walkman Dr. Suite #292 city: Royal Oak state: MI postal: 48046 ship-to: *id001 product: - sku: BL394D quantity: 4 description: Basketball price: 450 - sku: BL4438H quantity: 1 description: Super Hoop price: 2392 tax: 251.420000 total: 4443.520000 comments: Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. ... EOD; $parsed = yaml_parse($yaml); var_dump($parsed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tcHIh
function name:  (null)
number of ops:  9
compiled vars:  !0 = $yaml, !1 = $parsed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '---%0Ainvoice%3A+34843%0Adate%3A+%222001-01-23%22%0Abill-to%3A+%26id001%0A++given%3A+Chris%0A++family%3A+Dumars%0A++address%3A%0A++++lines%3A+%7C-%0A++++++458+Walkman+Dr.%0A++++++++++++++Suite+%23292%0A++++city%3A+Royal+Oak%0A++++state%3A+MI%0A++++postal%3A+48046%0Aship-to%3A+%2Aid001%0Aproduct%3A%0A-+sku%3A+BL394D%0A++quantity%3A+4%0A++description%3A+Basketball%0A++price%3A+450%0A-+sku%3A+BL4438H%0A++quantity%3A+1%0A++description%3A+Super+Hoop%0A++price%3A+2392%0Atax%3A+251.420000%0Atotal%3A+4443.520000%0Acomments%3A+Late+afternoon+is+best.+Backup+contact+is+Nancy+Billsmer+%40+338-4338.%0A...'
   33     1        INIT_FCALL_BY_NAME                                       'yaml_parse'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   34     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.78 ms | 1394 KiB | 15 Q