3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdata = unserialize('a:31:{s:9:"firstName";s:5:"Blake";s:8:"lastName";s:6:"Patton";s:5:"title";s:3:"Dev";s:11:"companyName";s:7:"Example";s:15:"companyLocation";s:5:"Idaho";s:5:"email";s:17:"lorem@example.com";s:7:"website";s:0:"";s:9:"address_1";s:12:"123 Fake St.";s:9:"address_2";s:0:"";s:11:"addressCity";s:9:"Fakeville";s:12:"addressState";s:2:"WA";s:14:"addressZipcode";s:6:"123456";s:5:"phone";s:12:"123-456-1234";s:3:"fax";s:0:"";s:18:"companyDescription";s:0:"";s:25:"checkIndustryOrganization";s:2:"on";s:28:"checkTechnicalStaffingAgency";s:2:"on";s:10:"checkOther";s:2:"on";s:7:"addlBiz";s:1:"1";s:8:"addEntry";s:1:"1";s:14:"addDescription";s:13:"Ipsm Sit Imut";s:10:"addWebsite";s:0:"";s:34:"checkContractManufacturingServices";s:2:"on";s:24:"checkEngineeringServices";s:2:"on";s:33:"checkTechnicalSalesRepresentative";s:2:"on";s:20:"checkTestingServices";s:2:"on";s:11:"checkLabels";s:2:"on";s:31:"checkMarketingMaterialsProvider";s:2:"on";s:6:"table1";s:2:"35";s:6:"table2";s:2:"36";s:12:"paypal_token";s:20:"EC-9RS395813D9318137";}'); foreach($userdata as $key=>$val){ $split = preg_split('/(?=[A-Z])/',$key); if($split[0]=='check'){ if($val == 'on'){ $category = ''; foreach($split as $name){ if($name!='check'){ $category .= $name.' '; } } $categories[]=trim($category); } } unset($split, $name, $key, $val, $category); } var_dump($categories); var_dump($userdata);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 37
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 37
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 31
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 31
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 24
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 25
Branch analysis from position: 31
Branch analysis from position: 31
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/p3MEZ
function name:  (null)
number of ops:  45
compiled vars:  !0 = $userdata, !1 = $val, !2 = $key, !3 = $split, !4 = $category, !5 = $name, !6 = $categories
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'a%3A31%3A%7Bs%3A9%3A%22firstName%22%3Bs%3A5%3A%22Blake%22%3Bs%3A8%3A%22lastName%22%3Bs%3A6%3A%22Patton%22%3Bs%3A5%3A%22title%22%3Bs%3A3%3A%22Dev%22%3Bs%3A11%3A%22companyName%22%3Bs%3A7%3A%22Example%22%3Bs%3A15%3A%22companyLocation%22%3Bs%3A5%3A%22Idaho%22%3Bs%3A5%3A%22email%22%3Bs%3A17%3A%22lorem%40example.com%22%3Bs%3A7%3A%22website%22%3Bs%3A0%3A%22%22%3Bs%3A9%3A%22address_1%22%3Bs%3A12%3A%22123+Fake+St.%22%3Bs%3A9%3A%22address_2%22%3Bs%3A0%3A%22%22%3Bs%3A11%3A%22addressCity%22%3Bs%3A9%3A%22Fakeville%22%3Bs%3A12%3A%22addressState%22%3Bs%3A2%3A%22WA%22%3Bs%3A14%3A%22addressZipcode%22%3Bs%3A6%3A%22123456%22%3Bs%3A5%3A%22phone%22%3Bs%3A12%3A%22123-456-1234%22%3Bs%3A3%3A%22fax%22%3Bs%3A0%3A%22%22%3Bs%3A18%3A%22companyDescription%22%3Bs%3A0%3A%22%22%3Bs%3A25%3A%22checkIndustryOrganization%22%3Bs%3A2%3A%22on%22%3Bs%3A28%3A%22checkTechnicalStaffingAgency%22%3Bs%3A2%3A%22on%22%3Bs%3A10%3A%22checkOther%22%3Bs%3A2%3A%22on%22%3Bs%3A7%3A%22addlBiz%22%3Bs%3A1%3A%221%22%3Bs%3A8%3A%22addEntry%22%3Bs%3A1%3A%221%22%3Bs%3A14%3A%22addDescription%22%3Bs%3A13%3A%22Ipsm+Sit+Imut%22%3Bs%3A10%3A%22addWebsite%22%3Bs%3A0%3A%22%22%3Bs%3A34%3A%22checkContractManufacturingServices%22%3Bs%3A2%3A%22on%22%3Bs%3A24%3A%22checkEngineeringServices%22%3Bs%3A2%3A%22on%22%3Bs%3A33%3A%22checkTechnicalSalesRepresentative%22%3Bs%3A2%3A%22on%22%3Bs%3A20%3A%22checkTestingServices%22%3Bs%3A2%3A%22on%22%3Bs%3A11%3A%22checkLabels%22%3Bs%3A2%3A%22on%22%3Bs%3A31%3A%22checkMarketingMaterialsProvider%22%3Bs%3A2%3A%22on%22%3Bs%3A6%3A%22table1%22%3Bs%3A2%3A%2235%22%3Bs%3A6%3A%22table2%22%3Bs%3A2%3A%2236%22%3Bs%3A12%3A%22paypal_token%22%3Bs%3A20%3A%22EC-9RS395813D9318137%22%3B%7D'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4      > FE_RESET_R                                       $9      !0, ->37
          5    > > FE_FETCH_R                                       ~10     $9, !1, ->37
          6    >   ASSIGN                                                   !2, ~10
    4     7        INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%2F%28%3F%3D%5BA-Z%5D%29%2F'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $12     
         11        ASSIGN                                                   !3, $12
    5    12        FETCH_DIM_R                                      ~14     !3, 0
         13        IS_EQUAL                                                 ~14, 'check'
         14      > JMPZ                                                     ~15, ->31
    6    15    >   IS_EQUAL                                                 !1, 'on'
         16      > JMPZ                                                     ~16, ->31
    7    17    >   ASSIGN                                                   !4, ''
    8    18      > FE_RESET_R                                       $18     !3, ->25
         19    > > FE_FETCH_R                                               $18, !5, ->25
    9    20    >   IS_NOT_EQUAL                                             !5, 'check'
         21      > JMPZ                                                     ~19, ->24
   10    22    >   CONCAT                                           ~20     !5, '+'
         23        ASSIGN_OP                                     8          !4, ~20
    8    24    > > JMP                                                      ->19
         25    >   FE_FREE                                                  $18
   13    26        INIT_FCALL                                               'trim'
         27        SEND_VAR                                                 !4
         28        DO_ICALL                                         $23     
         29        ASSIGN_DIM                                               !6
         30        OP_DATA                                                  $23
   17    31    >   UNSET_CV                                                 !3
         32        UNSET_CV                                                 !5
         33        UNSET_CV                                                 !2
         34        UNSET_CV                                                 !1
         35        UNSET_CV                                                 !4
    3    36      > JMP                                                      ->5
         37    >   FE_FREE                                                  $9
   19    38        INIT_FCALL                                               'var_dump'
         39        SEND_VAR                                                 !6
         40        DO_ICALL                                                 
   20    41        INIT_FCALL                                               'var_dump'
         42        SEND_VAR                                                 !0
         43        DO_ICALL                                                 
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.04 ms | 1392 KiB | 21 Q