3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $a = ' adams allen allison alvarez anderson andrews armstrong arnold avila bailey baker barnes bennett bishop boyd bradley brooks brown bryan burke burton butler campbell carlson carr carter chase chen christensen clark collins comer cook cooper cox crawford cunningham davis day dean dickinson edwards elliott ellis evans fischer fisher fong ford freeman frost garcia gardner gomes gomez gonzales graham green griffin hall hamilton hansen hanson harris harrison hartman harvey hayes henderson henry hernandez hill holmes howard hughes hunt jackson jensen johnson jones keller kelley kennedy king lane long lopez marsh martinez mathews matthews mcdonald miller mitchell moore morgan morris nelson newton obrien oconnor olsen palmer parker patterson peck perkins perry peterson phillips powell price randolph reed rice richardson rivera rivers roberts robinson rodrigues rodriguez rogers romero ruis sanders santos shaw short silva simpson smith snyder spafford spencer springer stafford stewart stone sullivan taylor thompson turner walker wallace walton ward warner watson weber wells white williams wong wood woods wright young zimmermann Richey Gillis Immich Csaki Leandre Bar-Ness Brodrick Wiederhorn Vissers Meeter Hesselmans Wallaschek Sverdrup-Thygeson Selbey Cheps Fliess Visscher Pope Khazenie Tin Sayers Mokken Aitio Bretthorst Zhiglyavskii Gihman Dussauchoy Isham Casado Braun Volf Swishchuk Jeswani Gottinger Arber Ulvila Himelein Champernowne Sturrock Garver Rama Murthy Dixit Dunford McGaw van der Ven Hisdal Spivak Vince Bashirov Floyd Shoenfeld Solso Szuesz Skindlov Vora Steishunas Buiculescu Cid Edel Evarts Feir-Walsh Clissold Brennan Pave Kuchler Cavin McGloughlin Stephan '; $names = array(); $a = explode("\n", $a); for ($i = 0; $i < count($a); $i++){ $names[] = ucfirst(strtolower( explode(",", $a[$i])[0] )); } $names = array_unique($names); print join("',\n'", $names);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 12
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 12
Branch analysis from position: 30
Branch analysis from position: 12
filename:       /in/hqVUD
function name:  (null)
number of ops:  40
compiled vars:  !0 = $a, !1 = $names, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, '%0Aadams%0Aallen%0Aallison%0Aalvarez%0Aanderson%0Aandrews%0Aarmstrong%0Aarnold%0Aavila%0Abailey%0Abaker%0Abarnes%0Abennett%0Abishop%0Aboyd%0Abradley%0Abrooks%0Abrown%0Abryan%0Aburke%0Aburton%0Abutler%0Acampbell%0Acarlson%0Acarr%0Acarter%0Achase%0Achen%0Achristensen%0Aclark%0Acollins%0Acomer%0Acook%0Acooper%0Acox%0Acrawford%0Acunningham%0Adavis%0Aday%0Adean%0Adickinson%0Aedwards%0Aelliott%0Aellis%0Aevans%0Afischer%0Afisher%0Afong%0Aford%0Afreeman%0Afrost%0Agarcia%0Agardner%0Agomes%0Agomez%0Agonzales%0Agraham%0Agreen%0Agriffin%0Ahall%0Ahamilton%0Ahansen%0Ahanson%0Aharris%0Aharrison%0Ahartman%0Aharvey%0Ahayes%0Ahenderson%0Ahenry%0Ahernandez%0Ahill%0Aholmes%0Ahoward%0Ahughes%0Ahunt%0Ajackson%0Ajensen%0Ajohnson%0Ajones%0Akeller%0Akelley%0Akennedy%0Aking%0Alane%0Along%0Alopez%0Amarsh%0Amartinez%0Amathews%0Amatthews%0Amcdonald%0Amiller%0Amitchell%0Amoore%0Amorgan%0Amorris%0Anelson%0Anewton%0Aobrien%0Aoconnor%0Aolsen%0Apalmer%0Aparker%0Apatterson%0Apeck%0Aperkins%0Aperry%0Apeterson%0Aphillips%0Apowell%0Aprice%0Arandolph%0Areed%0Arice%0Arichardson%0Arivera%0Arivers%0Aroberts%0Arobinson%0Arodrigues%0Arodriguez%0Arogers%0Aromero%0Aruis%0Asanders%0Asantos%0Ashaw%0Ashort%0Asilva%0Asimpson%0Asmith%0Asnyder%0Aspafford%0Aspencer%0Aspringer%0Astafford%0Astewart%0Astone%0Asullivan%0Ataylor%0Athompson%0Aturner%0Awalker%0Awallace%0Awalton%0Award%0Awarner%0Awatson%0Aweber%0Awells%0Awhite%0Awilliams%0Awong%0Awood%0Awoods%0Awright%0Ayoung%0Azimmermann%0ARichey%0AGillis%0AImmich%0ACsaki%0ALeandre%0ABar-Ness%0ABrodrick%0AWiederhorn%0AVissers%0AMeeter%0AHesselmans%0AWallaschek%0ASverdrup-Thygeson%0ASelbey%0ACheps%0AFliess%0AVisscher%0APope%0AKhazenie%0ATin%0ASayers%0AMokken%0AAitio%0ABretthorst%0AZhiglyavskii%0AGihman%0ADussauchoy%0AIsham%0ACasado%0ABraun%0AVolf%0ASwishchuk%0AJeswani%0AGottinger%0AArber%0AUlvila%0AHimelein%0AChampernowne%0ASturrock%0AGarver%0ARama+Murthy%0ADixit%0ADunford%0AMcGaw%0Avan+der+Ven%0AHisdal%0ASpivak%0AVince%0ABashirov%0AFloyd%0AShoenfeld%0ASolso%0ASzuesz%0ASkindlov%0AVora%0ASteishunas%0ABuiculescu%0ACid%0AEdel%0AEvarts%0AFeir-Walsh%0AClissold%0ABrennan%0APave%0AKuchler%0ACavin%0AMcGloughlin%0AStephan+%0A'
  234     4        ASSIGN                                                   !1, <array>
  235     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%0A'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !0, $6
  237    10        ASSIGN                                                   !2, 0
         11      > JMP                                                      ->27
  239    12    >   INIT_FCALL                                               'ucfirst'
         13        INIT_FCALL                                               'strtolower'
         14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%2C'
         16        FETCH_DIM_R                                      ~10     !0, !2
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        FETCH_DIM_R                                      ~12     $11, 0
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        ASSIGN_DIM                                               !1
         25        OP_DATA                                                  $14
  237    26        PRE_INC                                                  !2
         27    >   COUNT                                            ~16     !0
         28        IS_SMALLER                                               !2, ~16
         29      > JMPNZ                                                    ~17, ->12
  242    30    >   INIT_FCALL                                               'array_unique'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $18     
         33        ASSIGN                                                   !1, $18
  243    34        INIT_FCALL                                               'join'
         35        SEND_VAL                                                 '%27%2C%0A%27'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $20     
         38        ECHO                                                     $20
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.49 ms | 1392 KiB | 25 Q